diff --git a/.changeset/deferred-identity-coherent.md b/.changeset/deferred-identity-coherent.md deleted file mode 100644 index cc38ce13..00000000 --- a/.changeset/deferred-identity-coherent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-rx": patch ---- - -fix: make `useObservable` deferral identity-coherent. The observable identity and its value are now deferred as one snapshot, and when the observable identity changes (e.g. it is memoized on a document id that just changed) the hook falls back to the live value — so the previous identity's value never renders under the new one. diff --git a/packages/react-rx/CHANGELOG.md b/packages/react-rx/CHANGELOG.md index cde4d828..b4d1ab09 100644 --- a/packages/react-rx/CHANGELOG.md +++ b/packages/react-rx/CHANGELOG.md @@ -1,5 +1,11 @@ # react-rx +## 5.1.1 + +### Patch Changes + +- [#479](https://github.com/sanity-io/react-rx/pull/479) [`0f7bce9`](https://github.com/sanity-io/react-rx/commit/0f7bce90963fa8d540940303e6acfd8a38567dc2) Thanks [@stipsan](https://github.com/stipsan)! - fix: make `useObservable` deferral identity-coherent. The observable identity and its value are now deferred as one snapshot, and when the observable identity changes (e.g. it is memoized on a document id that just changed) the hook falls back to the live value — so the previous identity's value never renders under the new one. + ## 5.1.0 ### Minor Changes diff --git a/packages/react-rx/package.json b/packages/react-rx/package.json index a6995fec..bca79a14 100644 --- a/packages/react-rx/package.json +++ b/packages/react-rx/package.json @@ -1,6 +1,6 @@ { "name": "react-rx", - "version": "5.1.0", + "version": "5.1.1", "description": "React + RxJS = <3", "keywords": [ "action",