Skip to content

react-rx@7.0.1

Choose a tag to compare

@squiggler-app squiggler-app released this 23 Sep 19:23
· 48 commits to current since this release
22474c2

Patch Changes

  • #627 64f6fb1 Thanks @breken-ai! - Fix useObservablePromise and preloadObservablePromise on Hermes (React Native), where creating the promise crashed with Maximum call stack size exceeded. Hermes does not implement Symbol.species, so .then() on a Promise subclass built another instrumented instance and recursed in the constructor. The returned ObservablePromise no longer subclasses Promise: it is a thenable that wraps a plain promise and delegates then / catch / finally to it, so derived promises are plain Promises on every engine and use(promise.then(fn)) settles instead of suspending forever. It still satisfies the ObservablePromise<T> type and works with use(), await and the Promise combinators, but instanceof Promise is now false.