-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
start testing with React 19 #11883
start testing with React 19 #11883
Conversation
|
size-limit report 📦
|
✅ Deploy Preview for apollo-client-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for apollo-client-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for apollo-client-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for apollo-client-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Down to one failed test - it seems that for some reason This test takes about 5 seconds longer in React 19 with use vs React 19 with __use: apollo-client/src/react/hooks/__tests__/useSuspenseQuery.test.tsx Lines 9519 to 9615 in 8e3edd4
|
@@ -4594,6 +4596,8 @@ it('does not suspend deferred queries with partial data in the cache and using a | |||
}); | |||
|
|||
it("throws when calling loadQuery on first render", async () => { | |||
// We don't provide this functionality with React 19 anymore since it requires internals access | |||
if (IS_REACT_19) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, are you planning to add any more logic here for this, or will that be a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate PR - this one is purely about getting the tests to run, doesn't touch any shipped code and doesn't even have a changeset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome to see minimal changes for this. Thanks for going ahead with this :)
Excluding the HOC/Render Props tests, which I just disabled for React 19, we only have
threetwooneno failing tests with React 19.I'd call that a win :)