🤖🤖🤖 Fix readFragment optimistic option#13278
Conversation
|
@cyphercodes: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
✅ AI Style Review — No Changes DetectedNo MDX files were changed in this pull request. Review Log: View detailed log
|
🦋 Changeset detectedLatest commit: f1bc2d1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR fixes ChangesreadFragment optimistic option fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed due to a network error. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey @cyphercodes 👋 Can you sign the CLA before we can do anything with this PR? I opened #13281 without realizing you had this PR open so I want to make sure I give you credit for your contribution, but I'll need you to sign the CLA before I can do so. Thanks! |
|
Superseded by #13281 |
Fixes #13276
Summary
ApolloClient.readFragment's positionaloptimisticargument tooptions.optimistic.Testing
npm run test -- --runInBand --testRegex src/core/__tests__/client.readFragment/general.test.tsgit diff --checknpx prettier --check src/core/ApolloClient.ts src/core/__tests__/client.readFragment/general.test.ts .changeset/fresh-birds-read.mdnpm run changeset-checkSummary by CodeRabbit
Release Notes
Bug Fixes
ApolloClient.readFragmentnow respects theoptimisticoption supplied in the options object.Tests
readFragmenthonors theoptimisticoption.