signals icon indicating copy to clipboard operation
signals copied to clipboard

Bug: signals aren't reactive on lazy imported components

Open waelbettayeb opened this issue 2 years ago • 7 comments

Signals aren't reactive on lazy imported components on the react version. However, in the preact experiment suspense works fine.

waelbettayeb avatar Feb 08 '23 04:02 waelbettayeb

same issue

englishisnotenglish avatar Feb 27 '23 12:02 englishisnotenglish

same +1

agileago avatar Mar 01 '23 06:03 agileago

Any updates on this?

loicnestler avatar Mar 16 '23 06:03 loicnestler

same +1

ywang1724 avatar Apr 07 '23 09:04 ywang1724

Could someone provide a minimal repro of the issue? Is this using react or preact package? What versions, etc. etc.

andrewiggins avatar Apr 07 '23 20:04 andrewiggins

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:

Steps to reproduce:

  1. Run pnpm i && pnpm dev;
  2. Visit page: http://localhost:5173, and click the button;
  3. 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.

ywang1724 avatar Apr 10 '23 07:04 ywang1724

#420 it also is not working with forward refs

XantreDev avatar Sep 27 '23 19:09 XantreDev