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

Reference/Query trigger status #5

Open
jesselawson opened this issue Jul 13, 2018 · 0 comments
Open

Reference/Query trigger status #5

jesselawson opened this issue Jul 13, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jesselawson
Copy link
Owner

Like switches, we should be able to reference a trigger to determine its state.

For example:

story.registerTrigger({
  label: 'created trigger feature',
  trigger: () => { /* something */ },
  then: () => { /* something else */ }

We should be able to query the status of that trigger, like this:

story.triggerStatus('created trigger feature')
// Returns false

or

story.fired('created trigger feature')
// Returns false
@jesselawson jesselawson added enhancement New feature or request good first issue Good for newcomers labels Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant