I know I can do some workaround to this particular insert (disallowing null, or calling on app ready dynamic event) but there’s an specific reason on why this is happening?
Thanks brad, and apple for the laugh
It’s suposed to load on default, my question goes on why the (simple) sc is running twice (with a 200 status), what’s the reason, why both request have different initiator, It’s a timing thing?
Maybe this is on the wrong topic category, it’s more on know how it works, than how to achieve the result, as I can get that with: dmx-on:ready="serverconnectvstr.load({section: 'Clasificacion'})">
Removing the user param, resolves the duplicated thing.
(Still don’t know exactly why.
I want to know why giving that parameter the sc loads twice.
I guess the page loads the sc and when the user id is retrieved (few moments after), it loads again with the parameter expected)
Thanks @Apple
Whenever you have a parameter linked to a dynamic value it will reload whenever that value changes.
In this case, the value (serverconnect1.data.identity) starts as empty and changes to 82 so the SC loads when empty and then loads again when 82.
Depending on your use case, there’s a few options, depending on whether you want to include the user variable
Wait for the SC that returns the user variable and use the On Success dynamic event to load the visitors SC - tick no auto load to stop it running
If you want it to load each time a user changes, you can use dmx-bind:noload="!serverconnect1.data.identity" which will add the noload property when the identity is not present
If the user is irrelevant just remove that parameter from the SC