Describe the bug
selected = createMemo(() => fixed() ? 2 : count()) shows 0 while Fixed is false and Count is 1. With those inputs, Selected should be 1.
Your Example Website or App
https://s.olid.uk/id/dG5ungjvREetJHG8iUxFLA
Steps to Reproduce the Bug or Issue
- Wait for initialization.
- Click Run.
- Count becomes 1 while Fixed remains false and Selected remains 0.
Expected behavior
Selected should equal Count while Fixed is false.
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Firefox
Additional context
The async details memo holds the branch change. Updating Count during that hold exposes the mismatch. Keeping Count as an unconditional dependency removes it.
Reproduced on next at 14ded24. The earlier equivalent repro also reproduces on #3337 at 20f3143 and #3405 at 323f9ad.
Describe the bug
selected = createMemo(() => fixed() ? 2 : count())shows 0 while Fixed is false and Count is 1. With those inputs, Selected should be 1.Your Example Website or App
https://s.olid.uk/id/dG5ungjvREetJHG8iUxFLA
Steps to Reproduce the Bug or Issue
Expected behavior
Selected should equal Count while Fixed is false.
Screenshots or Videos
No response
Platform
Additional context
The async details memo holds the branch change. Updating Count during that hold exposes the mismatch. Keeping Count as an unconditional dependency removes it.
Reproduced on next at 14ded24. The earlier equivalent repro also reproduces on #3337 at 20f3143 and #3405 at 323f9ad.