Code Monkey home page Code Monkey logo

Comments (2)

paoloricciuti avatar paoloricciuti commented on July 20, 2024

Hi, can you create a much more minimal reproduction, possibly in the REPL ? The more minimal the reproduction is the more is possible that the bug is actually in svelte and not in application code (and the easier would be to find the root cause and fix it).

from svelte.

svelte-kit-so-good avatar svelte-kit-so-good commented on July 20, 2024

@ALJCepeda gave it a shot (but you should make a StackBlitz/ SvelteLab demo)

In /test/[id]/+layout.svelte you forgot a '$':

- windowW >= screenSizes.sm}
+ $windowW >= screenSizes.sm}

... but I narrowed it down to an issue with <slot/> in this component, i.e. doing this temporarily won't freeze things:

{#if loggedIn && windowW}
	{#if $windowW >= screenSizes.sm}
		<!-- <DesktopLayout>
			<slot />
		</DesktopLayout> -->
		foo
	{:else}
		<!-- <slot /> -->
		bar
	{/if}
{:else}
	<Spinner size={150} />
{/if}

Update: given that <slot/> was an issue I narrowed it down further to FullScreenDrawer.svelte in the +page.svelte, specifically something's borked with the 'wrapper' class.

from svelte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.