Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Reproduces issue with invalidate() for +layout.svelte endpoints

Notifications You must be signed in to change notification settings

oscarhermoso/layout-invalidate-bug

Repository files navigation

layout-invalidate-bug

Minimal svelte-kit repo created to reproduce issue sveltejs/kit#6373

Install with npm ci, start server with npm run dev

Expected: When calling invalidate(), the load() function will run for both +page.server.js and +layout.server.js endpoints.

Actual: When calling invalidate(), the load() function does not run for +layout.server.js endpoints.


Refresh the page to see expected behaviour. Click the "invalidate" button to see issue.

Install previous svelte-kit version with npm i @sveltejs/kit@1.0.0-next.443 to see previous behaviour working as expected for both the button and page refresh.

About

Reproduces issue with invalidate() for +layout.svelte endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published