-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResponseData type doesn't work as I think it should #436
Comments
@hendrul could you share your I think that you need another type anyway, You probably need this - https://github.com/klis87/redux-requests/blob/master/packages/redux-requests/types/index.d.ts#L3 - it works with |
I have been experimenting with this piece of art, exactly what I feel I was lacking in my projects. I really want this lib rise in popularity. Right now im working on refactoring a tiny proyect to propose new ways for my team to develop react redux apps. Redux sagas is on top of my refactoring, because it allows to implement user flows in a traditional structured way, and is all declarative and testable... I'm looking for the best ways and edge cases with the integration with redux-requests. |
Yeah, this lib is very undervalued, and it is not new, I have been working on it since several years already! It is like my goal to perfection in declarative server communication, hence it gradually evolves. But it could be more popular with helpers like requestCreators (see #432), as imho the key is to explain benefits even not to Redux users
There are 2 ways to use this libs, you can dispatch request in redux, or automatically via UI like react and helpers like Regarding sandbox, thx! I will definitely analyze it in the upcoming time. |
I want to have typing when dispatching (or putting) an action from a saga, something like
but response got type any...
Instead my own implementation looks like this
And it type what I expect to return from a request
The text was updated successfully, but these errors were encountered: