• Feed
  • Discussions
useSWR

useSWR

#useswr
0 followers·3 articles

useSWR

#useswr·0 followers·3 articles
useSWR
Ramu Narasinga
Ramu Narasinga
thinkthroo.hashnode.dev·Apr 17, 2025
Apr 17, 2025

useSWR usage in vercel/ai-chatbot hooks.

In this article, we will review the useSWR usage in vercel/ai-chatbot source code. I found two examples in hooks folder where useSWR is used. vercel/ai-chatbot/hooks/use-artifact.ts#L3 vercel/ai-chatbot/hooks/use-chat-visibility.ts#L4 use-artif...

Discuss·1 read
Vercel
Ramu Narasinga
Ramu Narasinga
ramunarasinga.hashnode.dev·Jul 28, 2024
Jul 28, 2024

Cache your fetcher in useSWR with useCallback.

I found a way that caches the fetcher in useSWR using useCallback in the Gitroom source code. The above image is from platform-analytics/render.analytics.tsx. Let’s try to understand this code snippet. we’ll explore how to optimize data fetching in ...

Cache your fetcher in useSWR with useCallback.
Discuss·2 reads
cache
Emmanuel Oloke
Emmanuel Oloke
emmanueloloke.hashnode.dev·Apr 07, 2023
Apr 07, 2023

React's useEffect vs. useSWR: Exploring Data Fetching in React.

Introduction The concept of data fetching in React applications is of high importance as it is often necessary to fetch data from an external source, such as an API or a database, and use that data to render components. React provides several ways to...

React's useEffect vs. useSWR: Exploring Data Fetching in React.
Discuss·7 likes·897 reads
React

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

NEXTON is unlocking serious TON yield—and this is just the beginning

Blessing Antia·28 reads

This week on WiFi Map: How real people are quietly building a global DePIN revolution

Blessing Antia·26 reads

200 million strong: How WiFi Map is quietly building the world’s biggest DePIN movement

Blessing Antia·22 reads

Top commenters this week

Mayank Arora
Mayank Arora
Sajid Ahmed
Sajid Ahmed
Emily
Emily
Tavi Vulcan
Tavi Vulcan
Marcus A. Baker
Marcus A. Baker

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior