Skip to content

react-rx@4.2.5

Choose a tag to compare

@squiggler-app squiggler-app released this 29 Jul 15:42
· 255 commits to current since this release
a17bc26

Patch Changes

  • #454 92c18db Thanks @stipsan! - Fix a useObservable memory leak where observables that complete or error synchronously upon subscription (e.g. of(...), a replayed-and-completed shareReplay(1), a synchronous throwError) left an entry in the internal cache that its own teardown could no longer evict. A later committed mount of the same observable would clean the entry up as a side effect, but that never happens for server renders, disabled hooks, or renders that throw before commit — there the entry retained the last emitted snapshot (or error) for as long as the source observable itself stayed alive. In the synchronous error case the stale entry also replayed the old error on later mounts instead of re-subscribing the source, turning transient errors permanent.