Closed pupubird closed 4 years ago
Hey, thanks for raising an issue!
Looks like the svelte template is missing this within the src/index.js
file:
window.app = new App({
// ...
hydrate: true // <~ add this
});
Verified it on my end. Please let me know if it works for you
The duplicated app issue is gone! Thanksss!!!
Hi! I am trying out this exciting project for Svelte! The step to recreate the issue:
Environment: Chrome, svelte with route and offline-plugin
It works fine if I directly land on the page,
but when I hit the refresh button, it will be duplicated
Some information that I think might help:
npm run build
again, the amount of duplicated = the amount of time I run the commandI tried:
May I know how should I resolve this issue? Very much thanks