Node.js Server actions

I am quite new to node.js. I basically know it is javascript running the backend.

My questions is: If I start a server action and the user navigates to another page while the action is executing, will it finish executing and if my action is on the layout page, will it execute the onsuccess or onfinish actions?

Yes. It will complete its execution on the server.

Most likely if the app is SPA. But haven’t tried it, so can’t be sure.

1 Like

Yes, SPA or no SPA.

The layout page is always part of its child pages.

1 Like

But if the app is not SPA, isn’t the layout page reloaded on navigation? Loosing the previuos reference of SC that was being executed?

1 Like