fix: abort and reschedule $effect.pre
when necessary
Follow-up to #16280 (comment) — just a failing test for now so that we don't lose track of it
feat:
, fix:
, chore:
, or docs:
.packages/svelte/src
, add a changeset (npx changeset
).pnpm test
and lint the project with pnpm lint
Latest commit: b4c6a9e
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
pnpm add https://pkg.pr.new/svelte@16335
No and no. Please don't do this.
Since you are here...the original pr also caused this
The problem is that since we are rescheduling the counter to prevent infinite loops increase instead of just staying at 0 and run over the 1001 effects, AND the derived being read in the effect for the first time increase the write version.
Not sure what the fix is yet, leaving this out there just in case is obvious to you