I have a plugin that requires a workflow to be ran in order to enable it.
The issue is that once the plugin is enabled, it will start to trip out and break itself if you try to enable it again while it’s already enabled.
This is a huge issue as I have a Single Page App, and “go to same page” workflows are my lifeblood.
I’ve tried to set conditionals such as only when page loaded entire along with do when condition is true (just once) and though I’ve seen improved performance, it’s still too glitchy for my liking.
If I tie the workflow to a simple button press, that solves everything, however, as the plugin is a background, it feels like it would be pretty weird to ask users to tap a button that will enable their background.
My initial thought would be to Do when page is loaded and Custom state is X.
Have a custom state, that on default is X so that the workflow runs.
In that same workflow, make it your last step to change the custom state from X to Z so that the workflow doesn’t run anymore when the page is loaded again.