Skip to content
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

Agregando soporte para graphql, (apollo + code-gen) en Edge/RSC #11

Merged
merged 3 commits into from
Nov 20, 2023

Conversation

fforres
Copy link
Member

@fforres fforres commented Nov 19, 2023

CAVEAT

  1. Si queremos usar Server Components, hay que traerse la data con el getApolloClient
    (Prácticamente lo mismo que esto https://github.com/apollographql/apollo-client-nextjs/blob/main/examples/polls-demo/app/rsc/page.tsx#L9-L12)
  2. useSuspenseQuery no es auto-generado por el code-gen 😢 (por ahora 🤞) hasta que alguien (yo) termine un PR que dijo q iba a partir en el repo de codegen useBackgroundQuery and useReadQuery support (typescript-react-apollo) dotansimha/graphql-code-generator-community#477
  3. useLazyQuery no tiene soporte por ahora, y no lo podemos eliminar del codegen 😢 (asi que por ahora, existe en el codigo, pero explota si se usa)

@fforres fforres changed the title Adding graphql support Agregando soporte para graphql, con code-gen y apollo en SSR/Edeg Nov 19, 2023
@fforres fforres changed the title Agregando soporte para graphql, con code-gen y apollo en SSR/Edeg Agregando soporte para graphql, (apollo + code-gen) en Edge/RSC Nov 19, 2023
@fforres fforres changed the title Agregando soporte para graphql, (apollo + code-gen) en Edge/RSC [WIP] - Agregando soporte para graphql, (apollo + code-gen) en Edge/RSC Nov 19, 2023
Copy link

socket-security bot commented Nov 19, 2023

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@apollo/client 3.9.0-alpha.4 network +11 6.03 MB apollo-bot
@graphql-codegen/near-operation-file-preset 3.0.0 None +1 62.1 kB dotansimha
@graphql-codegen/typescript-react-apollo 4.1.0 None +0 68.3 kB dotansimha
@clerk/clerk-react 4.28.0 environment +4 1.87 MB nikosdouvlis
@apollo/experimental-nextjs-app-support 0.5.1 None +29 1.15 GB apollo-bot
next 13.4.9...14.0.3 eval +12/-13 1.14 GB vercel-release-bot

🚮 Removed packages: @clerk/[email protected]

Copy link

cloudflare-workers-and-pages bot commented Nov 19, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4ab3e59
Status: ✅  Deploy successful!
Preview URL: https://7caf3365.tickets.pages.dev
Branch Preview URL: https://fforres-gql.tickets.pages.dev

View logs

@fforres fforres changed the title [WIP] - Agregando soporte para graphql, (apollo + code-gen) en Edge/RSC Agregando soporte para graphql, (apollo + code-gen) en Edge/RSC Nov 19, 2023
@fforres fforres merged commit 20d5d37 into main Nov 20, 2023
3 checks passed
@fforres fforres deleted the fforres/gql branch November 20, 2023 02:16
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.

1 participant