-
Notifications
You must be signed in to change notification settings - Fork 3
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
createReducer is missing metadata #13
Comments
Could you give an example where you need it, just so I am sure I fully understand the use case? |
For instance if I have a list of items, I'd like to differentiate the initial API call (loading indicator centered) from the pull-to-refresh (loading indicator at the top) so I'm using a flag
|
To elaborate - in my experimentation, the meta data is present on the async actions. It just isn't present on the type inferred for each of the async actions. If you cast the type back to the original action type, you can access the
|
First of all, congrats for the new
createReducer
. This is super helpful as we don't have to define types anymore!The only issue I'm seeing is that I can't seem to grab the
metadata
, only thepayload
infulfilled
stateThe text was updated successfully, but these errors were encountered: