Preactjs Signals Versions Save

Manage state with style in every framework

@preact/[email protected]

1 month ago

Patch Changes

@preact/[email protected]

1 month ago

Patch Changes

@preact/[email protected]

1 month ago

Patch Changes

@preact/[email protected]

1 month ago

Minor Changes

Patch Changes

@preact/[email protected]

4 months ago

0.3.0

Minor Changes

  • #467 d7f43ef Thanks @andrewiggins! - Change opt-in/opt-out comment to @useSignals and @noUseSignals. Previous comments (@trackSignals & @noTrackSignals) still supported but deprecated.

@preact/[email protected]

4 months ago

2.0.0

Major Changes

  • #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.

@preact/[email protected]

4 months ago

1.3.8

Patch Changes

@preact/[email protected]

4 months ago

0.2.0

Minor Changes

  • #458 0c0d89f Thanks @andrewiggins! - Only prepend useSignals call if we can't determine whether a function is a component or hook
  • #446 09f3ed7 Thanks @andrewiggins! - Use function expression name to determine if it is a Component and should be transformed.

@preact/[email protected]

4 months ago

1.5.1

Patch Changes

@preact/[email protected]

4 months ago

0.1.1

Patch Changes

  • #421 f80b251 Thanks @andrewiggins! - Add an "all" mode to the react transform that transforms all components to be reactive to signals
  • #441 4c433c3 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 forwardRef