Skip to content

chore: allow react v18 as peer dependency - #3456

Closed
JacobLey wants to merge 1 commit into
TanStack:masterfrom
JacobLey:allowReactv18
Closed

JacobLey wants to merge 1 commit into
TanStack:masterfrom
JacobLey:allowReactv18

Conversation

@JacobLey

Copy link
Copy Markdown
Contributor

V18 is finally out, and npm by default warns that packages like react-query are not expecting that version.

To my knowledge, the only "breaking" change of v18 is concurrent rendering. I don't think that will impact this library, especially since side effects like observer subscriptions already happen in useEffect hooks.

Actually methods like batchCalls are probably no longer necessary (although for should remain so long as <=17 is supported)

@vercel

vercel Bot commented Mar 30, 2022 •

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tanstack/react-query/2XfbC7fTWKFrzKS3G9Et5kQeSLt8
✅ Preview: https://react-query-git-fork-jacobley-allowreactv18-tanstack.vercel.app

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ef2245a:

Sandbox Source
tannerlinsley/react-query: basic Configuration
tannerlinsley/react-query: basic-typescript Configuration

@codecov

codecov Bot commented Mar 30, 2022

Copy link
Copy Markdown

Codecov Report

Merging #3456 (ef2245a) into master (ba09e16) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3456   +/-   ##
=======================================
  Coverage   96.41%   96.41%           
=======================================
  Files          45       45           
  Lines        2286     2286           
  Branches      642      642           
=======================================
  Hits         2204     2204           
  Misses         79       79           
  Partials        3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba09e16...ef2245a. Read the comment docs.

@TkDodo

TkDodo commented Mar 30, 2022

Copy link
Copy Markdown
Collaborator

please see:

and also the open react 18 support PR:

@JacobLey

Copy link
Copy Markdown
Contributor Author

Oh great thanks! I didn't see that on first inspection. Closing in favor of linked PR

@JacobLey JacobLey closed this Mar 30, 2022

This branch was successfully deployed

1 active deployment
Preview — ef2245a2 Deployed Mar 30, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants