question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sveltekit:refresh

See original GitHub issue

At 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

16reactions
mquandallecommented, Mar 24, 2021

Maybe reload? It’s similar to refresh but implicitly applies to the “app” instead of the “page” — reload the app, refresh the page.

2reactions
PuruVJcommented, Jul 12, 2021

+1 to @mquandalle’s suggestion, this seems like the best naming for this

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found