Hey forums,
I am experiencing a weird issue with timing an exposed state from a client-side action. Some useful background:
- I am using a client-side action, not an element action, because there is a bug where you cannot return context.async functions more than one time per browser session.
- I am saving the instance to the window in this manner: window.myInstance = instance
- I am publishing an exposed state in this client-side action from the window.myInstance
The issue is with timing. I have these workflows:
Step 1 (Publishes Exposed State) → Step 2 (Uses exposed State)
On the first run, it won’t work because step 2 executes before step 1 is able to publish the exposed state. The second run, it uses the data from the exposed state from the first run because the new data hasn’t been given to the exposed state yet.
Remember, client side actions do not have “Result of Step 1 …” exposed, so I must use exposed states. I need some help with this… running into a lot of Bubble limitations for this plugin and it’s been really annoying.
Any help would be appreciated.