💻 Learn Fetch data in Next.js | Rest API beginner friendly tutorial
HTML-код
- Опубликовано: 9 июн 2022
- This tutorial will teach Fetch data in Next.js (client-side) fetching.
You can continue parallel with me for a better understanding of the web concepts & uplift your design/dev skills to the next level in a short time.✌🏻
📚 Materials/References:
🔗 Starter Kit (give it a star ⭐):-
github.com/Streamline6/starte...
🔔 Support me, Subscribe for more!
/ streamline13
😊 Follow Me:
Instagram: / stream_line6
Twitter: / stream_line6
💼 Business Inquiries:
E-mail: webstreamline13@gmail.com
🙏🏻 Thanks for watching!
Make sure to like + Subscribe For More! ❤
#Nextjs #tailwindcss #nikstreamline
Love this content keep it up bro❤
love the content thank you so much for this tutorials
Glad you like them! 😊
please more nextjs
Sure dude :)
great vid!
Thank you so much 😊
i am newbie and have a question, if i retrieve the article from api call, and then i have another api to add new article, how do i retrieve a newest data without reload the page ?
You’d optimistically update the UI and then use something like SWR or Tanstack Query to cache and revalidate / invalidate the cache on some interval. This means that your request will be sent to hydrate the client with new data but you won’t need to reload - it’ll be done for you.
You can do this in Next13 without an external library using ISR and setting the invalidation time to something like “every 10 seconds, refetch the data”