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

Purely programmatic step? #475

Open
oatymart opened this issue Feb 18, 2024 · 0 comments
Open

Purely programmatic step? #475

oatymart opened this issue Feb 18, 2024 · 0 comments

Comments

@oatymart
Copy link

I would like to be able to include in my steps a step which doesn't render any popover, but only calls a function I've defined in the step (similar to onHighlightStarted or onDeselected). Is this possible in Driver 1.x? I would like to use this for setting up or tearing down application state.

I've read some tips about doing such work in my onHighlightStarted or onDeselected functions, but doing this will cause unwanted coupling between my steps. My steps list is dynamic (defined by admins) and could look like this:

...
- highlight a button
- open panel & highlight it
- highlight panel-part-1 
- highlight panel-part-2 [optional]
- highlight panel-part-3 [optional]
- close panel
- highlight another button
...

So it's for the close panel step that I want this purely programmatic step, because I cannot safely close it in the outgoing function of the panel-part-1|2|3 steps.

I only need a synchronous function today, but it would make sense for it to support async work for flexibility.

I would also be willing to help contribute a feature like this, if it doesn't exist yet.

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

No branches or pull requests

1 participant