[RxJs] Question: Any guidelines in using Recoil with RxJs #1013
Replies: 7 comments
-
Would be interesting to hear from anyone mixing these libraries? Assuming you follow the Recoil interface (i.e. not mutating objects stored in Recoil state, ...) then I would expect they should be able to coexist in the same application. Can't say any advice or patterns trying to mix observables and selectors. Looks like there are some guides out there for using RxJS with React Hooks for state management that may be applicable. |
Beta Was this translation helpful? Give feedback.
-
It sounds like I should use rxjs with hooks first and get used to the patterns. Along the way if I have to lift up any state I could try to use the same methodology to lift up the state with recoil? I could experiment with that idea for now. |
Beta Was this translation helpful? Give feedback.
-
@drarmstr could you make this into a discussion? I'd like to post some ideas to spark a discussion and check my approaches. |
Beta Was this translation helpful? Give feedback.
-
We haven't yet enabled GitHub Discussions for this repository, if that's what you mean. We've started talking about it, though.
|
Beta Was this translation helpful? Give feedback.
-
Hello there. Coincidentally I have implemented a small package in Typescript using Recoil and RxJS. All is working up to recoil version 0.4.0. Of course I'd love it if meanwhile anyone wants to try it out or leave any feedback. |
Beta Was this translation helpful? Give feedback.
-
i'll check it out! Right now i'm experimenting using
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.
-
@drarmstr could you move this to discussion? # |
Beta Was this translation helpful? Give feedback.
-
Any guidelines in using Recoil with RxJs? I was trying to find documentation or articles on how this would work but haven't come across any. I have some familiarity with Redux-Observable and find that it makes push based events easy to deal with.
Beta Was this translation helpful? Give feedback.
All reactions