apollo-client icon indicating copy to clipboard operation
apollo-client copied to clipboard

`InMemoryCache`: store fields with an empty object of optional arguments the same as fields without arguments

Open phryneas opened this issue 9 months ago • 5 comments

Fixes #12365 Fixes #8853

phryneas avatar Feb 13 '25 13:02 phryneas

🦋 Changeset detected

Latest commit: 40599b347858571789e9343c32c731c50ad2c5d4

The changes in this PR will be included in the next version bump.

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

changeset-bot[bot] avatar Feb 13 '25 13:02 changeset-bot[bot]

❌ Docs preview failed

The preview failed to build.

Build ID: da8a08760232a3773e0b2cce

Errors

react/data/subscriptions

  • Cannot find module '@microsoft/tsdoc/schemas/tsdoc.schema.json' from '/var/task/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/tsdoc-config/lib'

svc-apollo-docs avatar Feb 13 '25 13:02 svc-apollo-docs

npm i https://pkg.pr.new/apollographql/apollo-client/@apollo/client@12370

commit: 40599b3

pkg-pr-new[bot] avatar Feb 13 '25 13:02 pkg-pr-new[bot]

Deploy Preview for apollo-client-docs ready!

Name Link
Latest commit 3ca1179ff0e61dc1d30c17b9f6cb568d630cf1fc
Latest deploy log https://app.netlify.com/sites/apollo-client-docs/deploys/67cfff39a8a682000872d98a
Deploy Preview https://deploy-preview-12370--apollo-client-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Feb 13 '25 13:02 netlify[bot]

size-limit report 📦

Path Size
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (CJS) 42.81 KB (+0.11% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) (CJS) 37.92 KB (-0.05% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" 32.67 KB (+0.09% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) 27.1 KB (+0.29% 🔺)
import { ApolloProvider } from "@apollo/client/react" 5.7 KB (0%)
import { ApolloProvider } from "@apollo/client/react" (production) 960 B (0%)
import { useQuery } from "@apollo/client/react" 6.99 KB (0%)
import { useQuery } from "@apollo/client/react" (production) 2.23 KB (0%)
import { useLazyQuery } from "@apollo/client/react" 6.88 KB (0%)
import { useLazyQuery } from "@apollo/client/react" (production) 2.13 KB (0%)
import { useMutation } from "@apollo/client/react" 6.22 KB (0%)
import { useMutation } from "@apollo/client/react" (production) 1.48 KB (0%)
import { useSubscription } from "@apollo/client/react" 6.57 KB (0%)
import { useSubscription } from "@apollo/client/react" (production) 1.81 KB (0%)
import { useSuspenseQuery } from "@apollo/client/react" 8.34 KB (0%)
import { useSuspenseQuery } from "@apollo/client/react" (production) 3.62 KB (0%)
import { useBackgroundQuery } from "@apollo/client/react" 8.13 KB (0%)
import { useBackgroundQuery } from "@apollo/client/react" (production) 3.38 KB (0%)
import { useLoadableQuery } from "@apollo/client/react" 8.07 KB (0%)
import { useLoadableQuery } from "@apollo/client/react" (production) 3.36 KB (0%)
import { useReadQuery } from "@apollo/client/react" 6.37 KB (0%)
import { useReadQuery } from "@apollo/client/react" (production) 1.62 KB (0%)
import { useFragment } from "@apollo/client/react" 6.45 KB (0%)
import { useFragment } from "@apollo/client/react" (production) 1.69 KB (0%)

github-actions[bot] avatar Feb 13 '25 13:02 github-actions[bot]

⚠️ Docs preview not attached to branch

The preview was not built because the PR's base branch release-4.0 is not in the list of sources.

An Apollo team member can comment one of the following commands to dictate which branch to attach the preview to:

  • !docs set-base-branch version-2.6
  • !docs set-base-branch main

Build ID: 64e287b93ce9880bd7b7da8f

apollo-librarian[bot] avatar Jul 17 '25 21:07 apollo-librarian[bot]