Route Show/Hide etc Options for NodeJS SPA

Hi,

While configuring a NodeJS SPA project in Wappler, I have a requirement to do some work on on-show event of a route.
There are various such dynamic events for this in PHP/ASP.net SPA “route” component. Since there is no such component used in implementing SPA in NodeJS, is there any way to achieve this?

My use case right now is to scroll the page to top on load of route. Setting page to scroll on every possible link is not an acceptable or practical solution.
Other use cases which I have had mostly include calling a server action when route page is shown so that even if page is loaded from cache (which does not invoke auto-load), the data is always the latest.

Community Page
Last updated: