Closed Artur- closed 1 week ago
As stated in #576, React 19 is not supported by this library.
Please adhere to the peer dependencies rather than ignoring them: https://github.com/preactjs/signals/blob/931404e96338e120464b73e522148389e38eeb2b/packages/react/package.json#L71
Support for 19 will likely come only upon release -- I don't think anyone's going to invest the time to support an rc that might change.
Alright then. I managed to get it working by changing the symbol to use from react.element
to react.transitional.element
in https://github.com/Artur-/signals/tree/react19, seemingly related to https://github.com/facebook/react/pull/28813. It may not be the full solution for React 19 but at least I can test some things now.
Environment
@preact/signals-core
@preact/signals
@preact/signals-react
Describe the bug A simple signal using component
fails with React 19 rc with
To Reproduce
Steps to reproduce the behavior:
https://github.com/Artur-/react19-signals-tests-babel
open http://localhost:5173/
Expected behavior It should show "Hello: world" like with React 18
also works fine