@react-rxjs/core@0.5.0
·
147 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.