Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace React Query with fetch #2085

Open
Belco90 opened this issue Nov 11, 2023 · 0 comments
Open

Replace React Query with fetch #2085

Belco90 opened this issue Nov 11, 2023 · 0 comments
Labels
chore Changes that affect the build system, CI config or other changes that don't modify src/test f

Comments

@Belco90
Copy link
Member

Belco90 commented Nov 11, 2023

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

Do you want to help make the feature?

Yes

Is there anything else we need to know?

@Belco90 Belco90 added the chore Changes that affect the build system, CI config or other changes that don't modify src/test f label Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that affect the build system, CI config or other changes that don't modify src/test f
Projects
Status: Todo
Development

No branches or pull requests

1 participant