Describe the bug
Toggling a conditional JSX branch while an action is pending, then restoring it as the action resumes, throws REACTIVE_WRITE_IN_OWNED_SCOPE and halts reactivity.
The reactive setters are called from the event handler and action. The failing write is internal to Solid: syncCompanions -> setSignal updates the memo's latest companion.
Your Example Website or App
https://s.olid.uk/id/ac2B3KcWSk-Jko5Xf7I8og
Steps to Reproduce the Bug or Issue
- Open the repro.
- Click the button.
- After 400ms, the owned-scope write error occurs.
Expected behavior
The conditional branch displays Latest: 1 without throwing.
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Firefox
Additional context
Replacing latest(copy) with latest(count) avoids the error. Using Show instead of the JSX conditional also avoided it in the tested variant.
Reproduced against next at 344ed05 and #3337 at 20f3143.
Describe the bug
Toggling a conditional JSX branch while an action is pending, then restoring it as the action resumes, throws
REACTIVE_WRITE_IN_OWNED_SCOPEand halts reactivity.The reactive setters are called from the event handler and action. The failing write is internal to Solid:
syncCompanions -> setSignalupdates the memo's latest companion.Your Example Website or App
https://s.olid.uk/id/ac2B3KcWSk-Jko5Xf7I8og
Steps to Reproduce the Bug or Issue
Expected behavior
The conditional branch displays
Latest: 1without throwing.Screenshots or Videos
No response
Platform
Additional context
Replacing
latest(copy)withlatest(count)avoids the error. Using Show instead of the JSX conditional also avoided it in the tested variant.Reproduced against next at 344ed05 and #3337 at 20f3143.