We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create useObservable that tracks state of an Observable as shown here:
useObservable
Observable
function useSubscribe(observable$) { const [value, update] = useState(); useLayoutEffect(() => { const s = observable$.subscribe(update) return () => s.unsubscribe(); }, [observable$]); return value; }
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 2.1.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Nice to see that my little experiment made its way to this library :)
Thanks for sharing your experiment, hope you don't mind it landed here.
Successfully merging a pull request may close this issue.
Create
useObservable
that tracks state of anObservable
as shown here:The text was updated successfully, but these errors were encountered: