JohnCoene / cicerone

🏛️ Give tours of your Shiny apps
https://cicerone.john-coene.com
Other
192 stars 7 forks source link

A `run_once` arg? #39

Closed yogat3ch closed 2 years ago

yogat3ch commented 2 years ago

Hi @JohnCoene , there are some instances where it's useful for a guide to be triggered by a Javascript action (such as a module load). However, sometimes altering options on the page causes the UI to render again and trigger the guide again. We currently have a wrapper around the guide$init()$start() call that ensures they only run once. Do you think this might be something worth adding as an option to the init method? If so, lmk and I can PR, otherwise feel free to close

JohnCoene commented 2 years ago

Sure that sounds interesting!

yogat3ch commented 2 years ago

Ok, I'll see about it!