Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Responsive "Country Profile" multipage website with SvelteKit

svelte, tailwind-css, vite
Prantik•660
@prantiknoor
A solution to the REST Countries API with color theme switcher challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I am eager to receive constructive feedback from you.🙂

In this SvelteKit project, I encountered an issue that I would appreciate guidance on. Specifically, when navigating from a child route back to the home route, the data is being fetched again and the state is being reset to its initial value. Is there a way to prevent this from happening and maintain the current state upon returning to the home route? I would greatly appreciate any insight or solutions that the experts in SvelteKit may have to offer.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Prantik's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License