Gregivy / simpleddp

An easy to use DDP client library
MIT License
165 stars 19 forks source link

Redux-Saga #5

Closed hanimay closed 5 years ago

hanimay commented 5 years ago

What's the best way to integrate subscriptions and methods with Redux-Saga ?

Gregivy commented 5 years ago

I have not worked with Redux-Saga, but I suspect that you should use https://github.com/Gregivy/simpleddp/blob/2.x.x/api.md#ddpReactiveCollection+onChange or https://github.com/Gregivy/simpleddp/blob/2.x.x/api.md#ddpReactiveDocument+onChange or https://github.com/Gregivy/simpleddp/blob/2.x.x/api.md#ddpReducer+onChange for subscriptions. As for methods you can deal with them as with any other async request (like ajax).

Gregivy commented 5 years ago

I am closing it for now. If you have any questions feel free to reopen.