Is it possible to emit routing on the current URL, i.e., get page.js to call the respective callback on the current path?
The use case for this is if a user is signing in/out of my app, I want page.js to then route on the current path, since the current route may show different views based on authentication status.
I was using the Riot.js router and just switched over to leverage some page.js features, but page.js seems to be missing this core feature that Riot.js has (see here).
p.s. Currently my workaround is simply location.reload()
, but this is not ideal.