I have a server action that outputs a session_id (UID variable). I try to save that variable as a session in the browser.
However, by setting that up using dmx-on:success="session1.set('license_session_id',claim_license.data.session_id)" for some reason it refreshes the server action endlessly.
Please see below:
My server action when it’s still working as expected:
Any tips on how to work around this situation right now?
I need this server action to load once on page load (with te parameter that the same server action will set if it’s successful)
I think they do but only on layout pages I could be wrong, a method I use is a auto loading app flow my situation is different slightly as mine was a server connect loading too quickly causing it to load with no params but the same logic might work here too.
Essentially I just used a app flow that was auto loading in the flow you can run the no auto load server connect this way it runs just once, and If needed check certain things are populated or adding delays to allow param population in my case.