You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Derived's reactivity seems to be lost if it returns a state created outside of the derived. This happens only if the derived's returned state is mutated in the component instance block (inside <script>).
You shouldn't reassign state in deriveds, the fact that you can do it in untrack is irrelevant imho. Let's keep this open because I feel this is some unowned shenanigan
Describe the bug
Derived's reactivity seems to be lost if it returns a state created outside of the derived. This happens only if the derived's returned state is mutated in the component instance block (inside
<script>
).Reproduction
Reproduction playground
Steps to replicate:
increment linked
buttonincrement count
buttonincrement linked
buttonremoving
linked.current++;
on line 14 in the<script></script>
fixes itLogs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: