Manage state with style in every framework
#535 58befba
Thanks @jviide! - Publish packages with provenance statements
Updated dependencies [d846def
]:
d7f43ef
Thanks @andrewiggins! - Change opt-in/opt-out comment to @useSignals
and @noUseSignals
. Previous comments (@trackSignals
& @noTrackSignals
) still supported but deprecated.#467 d7f43ef
Thanks @andrewiggins! - Remove auto tracking using React internals from signals-react package
Before this change, importing @preact/signals-react
would invoke side effects that hook into React internals to automatically track signals. This change removes those side effects and requires consumers to update their code to continue using signals in React.
We made this breaking change because the mechanism we were using to automatically track signals was fragile and not reliable. We've had multiple issues reported where signals were not being tracked correctly. It would also lead to unexpected errors that were hard to debug.
For some consumers and apps though, the current mechanism does work. If you'd like to continue using this mechanism, simply add import "@preact/signals/auto";
to the root of your app where you call ReactDOM.render
. For our newly supported ways of using signals in React, check out the new Readme for @preact/signals-react
.
b0b2a5b
Thanks @XantreGodlike! - Ensure types are resolved against built .d.ts
rather than source .ts
0c0d89f
Thanks @andrewiggins! - Only prepend useSignals call if we can't determine whether a function is a component or hook06d4c10
Thanks @andrewiggins! - Wrap custom hooks in try/finally when using react-transform09f3ed7
Thanks @andrewiggins! - Use function expression name to determine if it is a Component and should be transformed.fb6b050
Thanks @andrewiggins! - Remove top-level requirement from react-transformad6305c
Thanks @XantreGodlike! - Added 'module:' prefix to readme to babel recognized plugin correctlyf80b251
Thanks @andrewiggins! - Add an "all" mode to the react transform that transforms all components to be reactive to signals4c433c3
Thanks @andrewiggins! - Add support for auto-transforming more ways to specify components: object methods, member assignments, export default components, components wrapped in HoCs like memo and forwardRef2939812
Thanks @andrewiggins! - Add support for auto transforming Components declared as object properties76babcb
Thanks @andrewiggins! - Add debug logging to inspect what components are transformed by plugin