Skip to content

react-rx@5.0.0

Choose a tag to compare

@squiggler-app squiggler-app released this 30 Jul 09:47
· 221 commits to current since this release
b5dbf18

Major Changes

  • #459 7ed6b55 Thanks @stipsan! - BREAKING: useObservable now defers store updates with useDeferredValue — urgent renders keep the previous value while a background render catches up. Mounts, remounts, and <Activity> reveals still render the current snapshot synchronously (no initial-value flash). SSR renders synchronous emissions (instead of always using initialValue), no longer throws when initialValue is omitted, and fails the server render on synchronously erroring observables.

    New useSyncObservable preserves v4's synchronous behavior and strict getServerSnapshot contract — use it for controlled inputs, or rename wholesale for a mechanical migration.

    See the v4 to v5 migration guide.

  • #434 08379ed Thanks @stipsan! - BREAKING: Require Node.js >=22.12, matching sanity's engines.node.

  • #435 bdef45b Thanks @stipsan! - BREAKING: Require React ^19.2 as a peer dependency. React 18 is no longer supported.

  • #442 a89ec09 Thanks @stipsan! - Stop publishing CommonJS builds — the package is ESM-only.

  • #449 5e83cbe Thanks @stipsan! - BREAKING: Require RxJS ^7.2 as a peer dependency. Import operators from 'rxjs' instead of the deprecated 'rxjs/operators' path.