Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Injectable Actions #2763

Open
griest024 opened this issue Feb 23, 2024 · 0 comments
Open

[FEAT] Injectable Actions #2763

griest024 opened this issue Feb 23, 2024 · 0 comments
Assignees
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

Comments

@griest024
Copy link
Member

griest024 commented Feb 23, 2024

馃挕 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

@griest024 griest024 added feat a new feature, enhancement, or improvement layer: state This PR or issue is related to the redux state layer labels Feb 23, 2024
@griest024 griest024 added this to the Daffodil v1.0 milestone Feb 23, 2024
@griest024 griest024 self-assigned this Feb 23, 2024
@griest024 griest024 added the p2 medium priority label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat a new feature, enhancement, or improvement layer: state This PR or issue is related to the redux state layer p2 medium priority
Projects
None yet
Development

No branches or pull requests

1 participant