It seems a Server Connect doesn’t Auto Load on an internal page change (NodeJS SPA), only on a regular page load.
Is there a way to make this work? Right now I’m using the popstate attribute on the Browser component to trigger a server connect reload when the user goes back, but pushstate is not implemented yet
just thinking out loud, might not work. But could you manage that by an app/page flow, that runs on content page load, which will run condition that will run server connect actions if URL param (eg reload=1) is true? So whenever you want it updated, example going to specific page, mark the param to true to reload server connect (on page or layout page)
(again haven’t tried)
Important point. Something I came across when doing current course. I secured the layout via a server action but then found that login/logout and menu conditions did not work as expected as the layout was never refreshed as I had set the links to internal. Unchecking “internal” forces a layout refresh which solved the issue for me. Wonder if “internal” can be made dynamic with a dmx-bind?