New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] do not call server and update page.data unnecessarily #6311
Conversation
🦋 Changeset detectedLatest commit: a0510ef The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Yeah, I ran into the same problem with #6275 and glossed over it. Wrapping everything in a Implementation-wise, don't we just need to update data if any nodes (server or shared) were invalid, and otherwise leave it be? I'm not sure I understand why we need to treat |
If
then |
Ah — sounds like the problem is that the So we have two choices: we can either load all the nodes in order to determine whether they have a server-only module (which causes a delay), or we can encode |
Oh right, any layout along the way could also not have a load function. If we use the |
ah of course! |
I adjusted the root layout so it no longer reruns, which made the tests I've written possible/correct. Wondering why the CI is so flaky recently though ... locally it ran fine. |
The |
Fixes #6201
Fixes #6286
Marking this as a draft because the test fails, because the root
+layout
always reruns on URL changes. Not sure how we should go about that, I'd like to prevent creating a new test app. Should we introduce a top level group?Also: Not sure if this is the best implementation-wise, or if some things could be made shorter here (saving bytes on the client), or if we can infer this somehow.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0