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
@robtaussig I love the library you built and how it handles a lot of the additional work of reconnecting, etc.
We use redux-saga extensively in our application for side effects and I'd love to implement websockets in redux-saga without having to build all of the great features you've already built from scratch. I know your library is hook based but wanted to ask if there is a way to use the existing APIs to make it work with redux-saga.
The text was updated successfully, but these errors were encountered:
Hi @MetaBenji,
Unfortunately, I do not have a lot of experience with redux-saga. Based on my limited understanding of it, I would consider creating a wrapper hook for useWebSocket that acts as an intermediary. Something like:
Then you can watch for those events in your sagas and do whatever you need to do to update your store/perform side-effects, etc. Again, I have very limited experience with redux-saga (I've only worked in a codebase where we were removing it), so take my suggestion with a grain of salt!
@robtaussig I love the library you built and how it handles a lot of the additional work of reconnecting, etc.
We use
redux-saga
extensively in our application for side effects and I'd love to implement websockets inredux-saga
without having to build all of the great features you've already built from scratch. I know your library is hook based but wanted to ask if there is a way to use the existing APIs to make it work with redux-saga.The text was updated successfully, but these errors were encountered: