Skip to content

Releases: re-rxjs/react-rxjs

@react-rxjs/core@0.5.1

07 Jan 16:06
Compare
Choose a tag to compare
  • Fix bind not supporting streams that emit functions #152

@react-rxjs/core@0.6.1

11 Nov 14:04
Compare
Choose a tag to compare
  • Fix bug with parametric bind switching keys #147
  • Improve Subscribe implementation and behaviour when changing its source$ #147
  • Upgrade dev-dependencies #148

@react-rxjs/core@0.6.0

30 Oct 11:29
Compare
Choose a tag to compare
  • Breaking change: Subscribe is now a super-set of React.Suspense. The default fallback is still null, though.

  • Breaking change: We are no longer making the initial subscription on render. It's now the responsibility of the user to make sure that the initial subscription is there before the hook consumes the observable. That can be accomplished in many different ways, but the most common ones should be using Subscribe or with top-level subscriptions. In a nutshell what's going to happen is that if during render, if we have to throw a Promise to trigger suspense we won't create that promise unless the subscription of the Subject that's used for multicasting is already there. This guarantees that render is always free from side-effects.

  • Fix: If a "suspended" observable completes without emitting any values, we will throw an error that can be captured from an error-boundary.

  • Fix: If a Subscribe component gets unmounted while one of its children is on Suspense, the underlying observable will be disposed.

@react-rxjs/core@0.5.0

20 Oct 13:19
Compare
Choose a tag to compare

Minor update: bind now accepts an optional argument defaultValue. Passing this argument prevents the hook from entering on Suspense. Therefore, you may not need to have a top-level subscription for its stream, because the first subscription will happen once the component is mounted. Also, if the stream at any point emits SUSPENSE, then the hook will return the defaultValue, rather than entering on Suspense.

@react-rxjs/core@0.4.5

20 Oct 12:20
Compare
Choose a tag to compare
  • bug-fix: Suspense was being triggered on StrictMode for hooks that didn't have a top-level subscription but that were synchronously emitting values.
  • Small changes to decrease the bundle-size.

@react-rxjs/core@0.4.4

15 Oct 08:35
Compare
Choose a tag to compare

Many performance optimizations due to changes on the internals:

  • Avoid using rxjs operators internally (now we only use Observable and Subject).
  • Prevent unnecessary calls to react's setState.
  • Remove some unnecessary observable enhancers that were used internally.
  • Get rid of the "unsubscription grace time": this was a very dangerous performance optimization, that didn't actually optimize that much. It was not documented and it was not part of the API, so (at least in theory) no one should have been relying on it. Also, it was a time-bomb for those that were unknowingly relying on it, so we've decided to remove it. If your App starts misbehaving after upgrading to 0.4.4, it's very possible that's your case. So, please be sure that you have the necessary top-level subscriptions so that you don't rely on render to start the subscriptions.

v3.0.0-alpha.5

14 Jul 20:54
Compare
Choose a tag to compare
v3.0.0-alpha.5 Pre-release
Pre-release
  • Critical bug fix #56
  • Apply patches to dev-dependencies

v3.0.0-alpha.4

10 Jul 23:24
Compare
Choose a tag to compare
v3.0.0-alpha.4 Pre-release
Pre-release
  • Apply patches on dev-dependencies
  • Improve build by avoiding warnings and avoiding publishing unnecessary TS definitions

v3.0.0-alpha.3

09 Jul 09:18
Compare
Choose a tag to compare
v3.0.0-alpha.3 Pre-release
Pre-release
  • Fixes a number of error-handling issues. Huge thanks to @voliva for finding the issue #53 and for his help and guidance to find the current solution #54.

v3.0.0-alpha.2

06 Jul 08:49
Compare
Choose a tag to compare
v3.0.0-alpha.2 Pre-release
Pre-release
  • Observables returned from connectObservable and connectFactoryObservable now complete if the source completes.
  • createInput has been deprecated in favor of subjectFactory.
  • Added useSubscribe and Subscribe utils.
  • Improved README and tests.