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
piotrwitek
changed the title
How to use AsyncActionCreatorBuilder
Add a generic redux-saga factory automatically handling async-actions - createAsyncSaga
Dec 24, 2019
I think this function is useful for reducing boilerplate, but I don't think it's suitable as a built-in helper. This is because there is more work to modify the boilerplate itself, such as state management of asynchronous requests, logging, and selector mapping.
I used typescript typesafe-actions v4
and I created Saga common function
like this
With this common function, I was able to create a single line of sagas.
like this
but in v5 i can't use this source code.
becuase of AsyncActionCreatorBuilder
(error message is Type '[T1, P1]' does not satisfy the constraint '[T1, [T1, P1] ....ommited..)
How do I change my source code??
The text was updated successfully, but these errors were encountered: