sveltekit:refresh
See original GitHub issueAt present you can force an <a>
tag to trigger a full page reload on click by adding either target="_self"
or rel="external"
.
Neither is particularly explicit. They cause a reload because <handwave>that’s how SPA routers work</handwave>, but in the name of clearly communicating intent and having a useful thing to add to the docs, it might be good to add a sveltekit:refresh
attribute alongside sveltekit:prefetch
and sveltekit:noscroll
.
It’s duplicative, but maybe that’s not the worst thing in the world?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Link options • Docs • SvelteKit
As with data-sveltekit-preload-data , this attribute will be ignored if the user has chosen reduced data usage. data-sveltekit-reloadpermalink. Occasionally, we ...
Read more >Refresh current page in SvelteKit - Stack Overflow
Is there any way to refresh page in every 10 seconds using SvelteKit? I have to refresh page to get output from endpoint....
Read more >Hot Content Reload with SvelteKit & Contentful
One cool aspect of the Stackbit visual editor is how it communicates with your website's dev server to apply all edits immediately on...
Read more >How does the Sveltekit RealWorld persist login on page refresh?
I was looking at https://github.com/sveltejs/realworld to learn more about how Sveltekit works and I couldn't figure out how the user login ...
Read more >Svelte Login using Access & Refresh Tokens - YouTube
Check our website: https://scalablescripts.comLearn how to Authenticate using Access & Refresh tokens using Svelte.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe
reload
? It’s similar torefresh
but implicitly applies to the “app” instead of the “page” — reload the app, refresh the page.+1 to @mquandalle’s suggestion, this seems like the best naming for this