unstale

npm / react-rx

react-rx

What changed in react-rx 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

34 breaking3 deprecations7 new APIs and options6 behavior and defaults1 tooling10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

react-rx 713 changes

Breaking changes 7

  • A request that emits no value fails with EmptyError, and failures are never cached.

    7.1.0release notes

  • ObservablePromise no longer subclasses Promise; it wraps a plain promise, avoiding Hermes recursion and making derived promises plain Promise instances. instanceof Promise is now false.

    7.0.1release notes

  • useObservable and useSyncObservable no longer subscribe during render; subscriptions start when the component commits, and the resolved initialValue renders first.

    7.0.0release notes

  • The initialValue argument is now required; omitting it is a type error and throws a TypeError during render.

    7.0.0release notesupgrade guide

  • The hook is removed. Replace it with useObservableSubject and move its pipeline to where its output is consumed.

    7.0.0release notesupgrade guide

  • The hook no longer subscribes during a mounting render. Fetches start when a non-disabled consumer commits, when a live consumer swaps observable identity, or when preloadObservablePromise is called.

    7.0.0release notesupgrade guide

  • initialValue is required; omitting it is a type error, and JavaScript callers trigger a render-time error. It renders until the observable emits.

    7.0.0upgrade guide

New APIs and options 2

  • Adds a method to forget every key in the observable cache at once.

    7.1.0release notes

  • Adds a keyed cache of shared observables for request-like sources, letting callers of a key share one request and its settled promise.

    7.1.0release notes

Behavior and default changes 4

  • Releases a key ttl after its last subscriber leaves; the same ttl applies to abandoned requests and entries that were never subscribed to.

    7.1.0release notes

  • The cached observable ends at its first value, stays open, and truncates later emissions or errors; use first() or firstValueFrom rather than waiting for completion.

    7.1.0release notes

  • Setting disabled to true now guarantees zero subscriptions.

    7.0.0release notes

  • On the server, this function is a no-op that returns an inert pending promise and neither subscribes nor touches the cache.

    7.0.0release notesupgrade guide

react-rx 69 changes

Breaking changes 3

  • Resolves initialValue once per hook instance and caches it, stabilizing pre-emission snapshots. Values passed on later renders are ignored until remount; keep initializers pure.

    6.1.0release notes

  • Setting disabled to true now means zero subscriptions, even when the observable is rebuilt every render.

    6.0.0release notes

  • When initialValue is provided, the hook skips render-phase warm-up and first shows that value; it subscribes on commit. SSR renders initialValue without subscribing, and sync emissions arrive after mount.

    6.0.0release notes

Deprecations 3

  • Calling useObservable without initialValue is deprecated ahead of v7, where the argument is required; passing undefined explicitly retains v6 types and behavior.

    6.1.0release notes

  • Deprecated ahead of its removal in v7; useObservableSubject provides a migration path for pushing events and reading the resulting observable.

    6.1.0release notes

  • Calling useSyncObservable without initialValue is deprecated ahead of v7, where the argument is required.

    6.1.0release notes

New APIs and options 1

  • Adds a hook returning an observable of pushed values and a referentially stable handler; its Subject is scoped to the component instance, with only the observable side exposed.

    6.1.0release notes

Fixes and other changes 2

  • Resolves initialValue once per hook instance and caches it, stabilizing pre-emission snapshots and the server snapshot. Values passed on later renders are ignored until remount; keep initializers pure.

    6.1.0release notes

  • After the hook receives an emission, replacement observables on later renders are warmed during render so components that rebuild observables every render settle instead of looping.

    6.0.0release notes

react-rx 513 changes

Breaking changes 8

New APIs and options 3

  • Adds a Suspense-ready data-fetching API returning a use()-compatible promise, with disabled and ttl options.

    5.1.0release notes

  • Adds a Suspense-ready data-fetching hook that returns a use()-compatible promise, with disabled and ttl options.

    5.1.0release notes

  • Provides the exact v4 synchronous behavior, including the strict server snapshot.

    5.0.0upgrade guide

Fixes and other changes 2

  • Defers the observable identity and its value as one snapshot; when the identity changes, the hook falls back to the live value so the previous identity's value never renders under the new one.

    5.1.1release notes

  • Restores the ponyfill so effect events see the latest values in memo and forwardRef components.

    5.0.1release notes

react-rx 45 changes

Breaking changes 3

  • The published exports map no longer includes the source condition; import and require continue to resolve dist/index.js and dist/index.cjs.

    4.2.4release notes

  • The src directory is no longer included in the published package, so consumers can no longer access it from the tarball.

    4.2.4release notes

  • Subscribes eagerly with delayed refcount expiry, changing observable unsubscription timing and potentially causing race conditions when side effects respond to emissions.

    4.0.0release notes

Tooling 1

  • Releases now use Changesets-based releases with npm trusted publishing; this changes the project’s release workflow, not runtime behavior.

    4.2.3release notes

Fixes and other changes 1

  • Fixes a memory leak when observables complete or error synchronously upon subscription, and prevents stale cached errors from replaying on later mounts instead of re-subscribing.

    4.2.5release notes

react-rx 321 changes

Breaking changes 13

New APIs and options 1

Behavior and default changes 2

Fixes and other changes 5