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

REST Countries API w/ Svelkit, Ts, Tailwind, Axios & SSR prefetching

svelte, tailwind-css, typescript, axios
Antoine C•1,240
@mattari97
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


It was a great project to practice dynamic routes in Sveltkit.

But i could not find the way to catch the API call errors on the client side.

Maybe you know how ? 😊

I would also like to implement a caching system (maybe service worker ??) for already fetched endpoints.

If you have any advice or resources on that matter or anything about the layout or the code feel free to share.

Have a nice day/night. Peace

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 Antoine C'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