Submitted almost 3 years agoA solution to the REST Countries API with color theme switcher challenge
Responsive "Country Profile" multipage website with SvelteKit
svelte, tailwind-css, vite
@prantiknoor

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