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
while it might often be the case that we want to add some meta to action at the point of invocation, the meta object is also useful when working with libraries such as redux-offline, that requires the meta object to contain specific fields. defining this each time an action is invoked, would suck
Initial Proposals
1: add a meta-option as an additional argument to the main function, that accepts an object defining meta for each action that requires it.
2: optionally parse an object instead of a function in the definition, if this is an object, we would expect a update key with the function to be used in the reducer (required), and a meta key, that would contain an object that would be parsed into the actionCreator function, setting this as the default meta.
I'm leaning towards option two, as this would allow for other options to parsed to a specific action /actioncreator/reducer update function all within the single definition object.
The text was updated successfully, but these errors were encountered:
Motivation
while it might often be the case that we want to add some meta to action at the point of invocation, the meta object is also useful when working with libraries such as redux-offline, that requires the meta object to contain specific fields. defining this each time an action is invoked, would suck
Initial Proposals
1: add a meta-option as an additional argument to the main function, that accepts an object defining meta for each action that requires it.
2: optionally parse an object instead of a function in the definition, if this is an object, we would expect a update key with the function to be used in the reducer (required), and a meta key, that would contain an object that would be parsed into the actionCreator function, setting this as the default meta.
I'm leaning towards option two, as this would allow for other options to parsed to a specific action /actioncreator/reducer update function all within the single definition object.
The text was updated successfully, but these errors were encountered: