signals
signals copied to clipboard
React Signals not working when renderToStaticMarkup is used in an App
Hi, when I tried a library I found that the signals did not work if in an app is used renderToStaticMarkup
from react-dom/server
. It is a bug or expected behavior?
I created an sandbox for test https://codesandbox.io/s/goofy-pascal-6l1dmf
Same apply if renderToString
is used. Everythings works when I remove an usage of those functions.
It appears this is only an issue when renderToStaticMarkup
is used directly from within a component that is currently being rendered by ReactDOM (see working non-nested example).
Hi, thank you for an example. I will test it once again if I can somehow update my code to something like this.
This is fixed in 1.2.2 https://codesandbox.io/s/angry-tdd-sy0rr6