You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useObservableState and useObservableEagerState follow the React useState convention. If you need to trigger rendering without changing the value, use useSubscription + useRef instead.
Calling .next will trigger the observer callback. useObservableState and useObservableEagerState consume the value as React state, so no re-rendering is triggered.
To force update, you can use a very simple hook like useUpdate
In case a JS
Map
is used as value forBehaviorSubject
the value provided fromuseObservable*
hooks will be stale.Try:
The text was updated successfully, but these errors were encountered: