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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transient state #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add transient state #32

wants to merge 3 commits into from

Conversation

mustangJaro
Copy link

@mustangJaro mustangJaro commented Oct 16, 2020

This adds a new :transient? key to the rule structure to allow users to be able to identify which rules can be run more than once. This can be helpful for SPAs where I want to load new state every time a certain condition is met, for example, going to a specific URL should reload certain state.

Specifically, this restricts the app from storing the "transient" rule in rules-fired so that async-flow doesn't track the execution of it in the same way. However, the dispatch events are still executed as normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant