Tips and best practices using useObservable, rxjs with recoil? #58
Replies: 2 comments
-
Hey, did you ever find out how to do this properly? I'm not using Recoil, but I have noticed a similar issue when trying to use observable-hooks + BehaviorSubject as a form of state management. I think the issue may be that calling One potential way to mitigate this is to add |
Beta Was this translation helpful? Give feedback.
-
Sorry I am new to recoil. What should the role of RxJS be in a recoil app? |
Beta Was this translation helpful? Give feedback.
-
Hi! I was wondering if anyone has any ideas for best practices to Recoil with RxJs and observable hooks? I'm trying to see how I can RxJs with react while using recoil as a state.
I created the following hooks to create observables from recoil atoms.
it seems to be causing multiple triggers when i use it. In addition, the cycle time is causes strange intermittent states during updates.
Beta Was this translation helpful? Give feedback.
All reactions