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:
- click on
increment linked button
- click on
increment count button
- click on
increment linked button
- the reactivity is lost as linked count should have been incremented
removing linked.current++; on line 14 in the <script></script> fixes it
Logs
System Info
Severity
annoyance