[FEAT] Injectable Actions #2763
Labels
feat
a new feature, enhancement, or improvement
layer: state
This PR or issue is related to the redux state layer
p2
medium priority
Milestone
馃挕 Feature request
Feature Name
Injectable Actions
The Desired Behavior
Daffodil effects and reducers should be able to understand and operate with app-provided actions as if they were the standard Daffodil actions.
Daffodil effects should be able to trigger operations based on a provided init action, optionally resolving with provided success or failure actions if specified.
Daffodil reducers should handle init, success, and failure actions to update state accordingly.
Each daffodil operation (updating cart shipping address, loading customer orders, etc.) should have an associated injection point to which an app dev can provide multiple init, success, and failure actions.
Your Use Case
As an app dev, I want to use my own custom actions to perform Daffodil operations.
Prior Work
Cart retrieval actions display this functionality for the reducers.
The following packages need this implemented:
TODO: add list of packages
The text was updated successfully, but these errors were encountered: