Skip to content

@react-rxjs/core@0.5.0

Compare
Choose a tag to compare
@josepot josepot released this 20 Oct 13:19
· 144 commits to main since this release

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.