-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
When using useReadQuery
directly before useQueryRefHandlers
, refetch
won't update the useReadQuery
result
#11772
Comments
Was able to confirm in |
* ApolloClient: make browser event-replaying logic available in SSR * RSC preloading mechanism prototype * fix build, update expected shape * remove console.log * progress * [WIP] queryRef * tests for both notations * fix up import * different resolutions * test fixups * integrate `useQueryRefHandlers` * typings * fix up test see apollographql/apollo-client#11772 * merge fixup * more fixup * refactor queryRef handling * add test about referential assumptions * schema adjustments * bind `PreloadQuery` to `registerApolloClient` * move `getClient` into the promise chain * trigger CI * adjust shape * update AC build * `gql(print(gql` * pin types * tweaks * udpate lockfile * forbid `nextFetchPolicy` in `PreloadQuery` * fix up build, bump dep * use uuid, not useId * update urls * disable all kinds of minification * change transport to events * simulate GraphQL error, not network error * use `query` in a test * undo disabling minification * add clarifying comment * Revert "simulate GraphQL error, not network error" This reverts commit c8a2ad5. * prevent unhandled promise rejections * debugging * Revert "undo disabling minification" This reverts commit 00585ea. * test? * clean up debugging things * update dependencies * more version pinning * update lockfile even more * also update `react-server-dom-webpack` * adjust react version for vite-streaming * TransportedQueryRef: inherit QueryReferenceBase * split `TransportedQueryReference` type * queryOptions as props on `PreloadQuery` * Update packages/client-react-streaming/src/DataTransportAbstraction/WrappedApolloClient.tsx Co-authored-by: Jerel Miller <jerelmiller@gmail.com> * adjust generic name and comment * change to QueryRef base type * rename command to match parent project * update dependency "@apollo/client": "^3.10.4" --------- Co-authored-by: Jerel Miller <jerelmiller@gmail.com>
I encountered the same bug with the The difficulty in finding it was that the bug doesn't appear when running the development server from Create React App, but it does occur in the production build. |
I've just come across the same problem when trying to replace a standard The apollo cache is hit correctly, but the |
Issue Description
I encountered this over in apollographql/apollo-client-nextjs#258:
works, but
fails to rerender the page when the refetch finishes.
Link to Reproduction
apollographql/apollo-client-nextjs@3a014a4
Reproduction Steps
No response
@apollo/client
version3.9.10
The text was updated successfully, but these errors were encountered: