Repository navigation
react-rx@7.0.1
·
48 commits
to current
since this release
Patch Changes
- #627
64f6fb1Thanks @breken-ai! - FixuseObservablePromiseandpreloadObservablePromiseon Hermes (React Native), where creating the promise crashed withMaximum call stack size exceeded. Hermes does not implementSymbol.species, so.then()on aPromisesubclass built another instrumented instance and recursed in the constructor. The returnedObservablePromiseno longer subclassesPromise: it is a thenable that wraps a plain promise and delegatesthen/catch/finallyto it, so derived promises are plainPromises on every engine anduse(promise.then(fn))settles instead of suspending forever. It still satisfies theObservablePromise<T>type and works withuse(),awaitand thePromisecombinators, butinstanceof Promiseis nowfalse.