instantpage/instant.page

Not compatible with SPA navigation

Closed this issue · 1 comments

Can we have a version that doesn't uses const? I'm currently mantaining an app that persists the state (the window variable) and one thing: either the scripts is loaded at every navigation, causing it to break due to to reatributting const variables

The script is designed to be loaded as a module script (type=module in HTML or import() in JS) and not as a classic script, doing so will avoid variables trying and failing to be reassigned.