-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix: ensure deferred effects can be rescheduled later on #17147
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
base: main
Are you sure you want to change the base?
Conversation
When deferring effects we didn't unmark the deriveds that lead to those effects. This means that they might not be reached in subsequent runs of `mark_reactions`. Fixes #17118 (comment)
🦋 Changeset detectedLatest commit: 8f7e8b9 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 |
|
|
Btw to fully solve this in SvelteKit I think we also need to discard the last fork when a new one come because I think right now we don't do it. |
|
Why though? It should be possible to have parallel forks. They could be independent and it would be very confusing to have a fork be discarded when another part of the app you may not have control over starts a fork |
|
Mmm I'm specifically talking about preloading tho... shouldn't we discard older fork when you move your mouse on another link? |
|
Looking at SvelteKit's code it should alread do that ( |
|
It only do that inside |
|
Moving your mouse on another link should call |
|
Lul just realized a missed a "should" before the last sentence 😅 |
|
@paoloricciuti I think Rich already implemented it sveltejs/kit#14865 it is just not released yet. |

When deferring effects we didn't unmark the deriveds that lead to those effects. This means that they might not be reached in subsequent runs of
mark_reactions.Fixes #17118 (comment)
Before submitting the PR, please make sure you do the following
feat:,fix:,chore:, ordocs:.packages/svelte/src, add a changeset (npx changeset).Tests and linting
pnpm testand lint the project withpnpm lint