signals
signals copied to clipboard
Bug: signals aren't reactive on lazy imported components
Signals aren't reactive on lazy imported components on the react version. However, in the preact experiment suspense works fine.
same issue
same +1
Any updates on this?
same +1
Could someone provide a minimal repro of the issue? Is this using react or preact package? What versions, etc. etc.
Could someone provide a minimal repro of the issue? Is this using react or preact package? What versions, etc. etc.
hi~, @andrewiggins , you can reproduce it with this demo.
A few points:
- [email protected]
- @preact/[email protected]
Steps to reproduce:
- Run
pnpm i && pnpm dev; - Visit page: http://localhost:5173, and click the button;
- You can see this phenomenon: the signal named count, its value changes and the direct imported component follow the changes, but the lazy imported component did not follow.
#420 it also is not working with forward refs