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
{{ message }}
Repository navigation
[2.0] Mounting a memo during a held action can crash a render callback #3802
While an action holds a signal write, mount a child that creates a memo reading that signal and a div whose attributes read the held signal and a separate signal. Changing the separate signal before the action settles crashes the generated render callback and halts reactivity.
Chromium reports:
TypeError: Cannot destructure property 'e' of 'undefined' as it is undefined.
[REACTIVITY_HALTED] An uncaught error halted the reactive system.
Firefox reports TypeError: (destructured parameter) is undefined.
The action stages a signal write and waits 2 seconds. After 100 ms, the Show child mounts and creates a memo reading that signal. After another 100 ms, a separate signal changes the div's title.
Observe the TypeError and REACTIVITY_HALTED in the console.
Expected behavior
The pending read may hold the subtree's reveal, but updating another attribute should not invoke its render callback with undefined or halt reactivity. The subtree should render normally when the action settles.
Screenshots or Videos
No response
Platform
OS: Linux (browser reproduction)
Browser: Chromium 153.0.8010.12; Firefox 155.0
Additional context
Solid experimental preview mizulu/solid2@6f77b1b for solid-js, @solidjs/signals, and @solidjs/web.
The reproduction uses three signals, one action, one Show, and one createMemo. No stores, optimistic state, lists, routing, lazy components, or refresh runtime are involved. It uses ordinary 100 ms delays between updates; no manual flush or microtask scheduling. Tailwind is disabled.
Fixed by #3814, squash-merged to next as 7acc039. A render effect that still holds a staged value is no longer queued during a re-staging pass, because the commit replays it. The render callback no longer runs early against a memo mounted during the held action.
Activity
test(signals): pin the lane pass of a born-held effect (solidjs#3802)
revert(signals): drop 93ae88d's #3802 condition for #3814's
docs(signals): the direction rule — a hold never waits on work that h…
fix(signals): skip the run for a re-staging effect pass (#3814)
ryansolid commentedon Oct 6, 2026
fix(signals): carve async toward the F/D rules; redo #3937, #3954, #3895
docs(signals): async rules — the 2026-10-09/10 rulings in F/D (#3976)