You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace React Query with plain fetch for requests.
We use React Query for revalidating, caching and tagging queries. Since Next.js enhances the fetch API with similar features, we don't need RQ anymore. Also, using the fetch method is needed to take 100% advantage of React Server Components.
What problem will this change solve?
React Query has the following disadvantages:
can't take 100% advantage of React Server Components
makes the bundle bigger
Since the fetch method has been enhanced with Next.js to provide the features we use from RQ, we will benefit from RSC + lighter bundle by removing RQ.
What internal change would you like to have?
Replace React Query with plain
fetch
for requests.We use React Query for revalidating, caching and tagging queries. Since Next.js enhances the
fetch
API with similar features, we don't need RQ anymore. Also, using thefetch
method is needed to take 100% advantage of React Server Components.What problem will this change solve?
React Query has the following disadvantages:
Since the
fetch
method has been enhanced with Next.js to provide the features we use from RQ, we will benefit from RSC + lighter bundle by removing RQ.Do you want to help make the feature?
Yes
Is there anything else we need to know?
The text was updated successfully, but these errors were encountered: