svelte icon indicating copy to clipboard operation
svelte copied to clipboard

fix: ensure mark_reactions occurs for dirty signals

Open trueadm opened this issue 1 year ago • 4 comments

There was a bug in https://github.com/sveltejs/svelte/pull/12921. I've revised the logic and added a comment for it, we should only apply new heuristic for when we are setting the status to MAYBE_DIRTY.

Funnily the failing case is captured in the $state.link PR.

trueadm avatar Aug 20 '24 16:08 trueadm

🦋 Changeset detected

Latest commit: e352eccbc2fa19419a1b38797e78f3d7e692bf2b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

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

changeset-bot[bot] avatar Aug 20 '24 16:08 changeset-bot[bot]

@trueadm what's the status on this here? There was some concerns about readability, but given that it seems to fix #13174 (in which case we should also add a test to this PR) I'd like to get this in soon

dummdidumm avatar Sep 10 '24 07:09 dummdidumm

@dummdidumm I don't see how this PR can fix that issue? I'll look into it tho

trueadm avatar Sep 10 '24 12:09 trueadm

Mhm I think I was mistaken - one of the reproductions in that issue did work in the REPL of this PR, but I can't reproduce that anymore, it now fails in this one, too.

dummdidumm avatar Sep 10 '24 12:09 dummdidumm

Is this PR still live? As mentioned the logic is somewhat unclear, and the changeset and the code don't seem to correspond to each other

Rich-Harris avatar Sep 16 '24 22:09 Rich-Harris

It was a perf opportunity. I’ve had bigger fish on my radar though so feel free to take over or close

trueadm avatar Sep 16 '24 22:09 trueadm