Let’s see how to use URQL and set it up to handle SSR and SSG inside of Next.js. URQL is a lightweight replacement for Apollo Client that handles most of what you typically use Apollo for, in a very similar fashion.

---------- Timeline

  • 00:00 - Introduction
  • 01:50 - Setting up URQL client
  • 05:00 - Adding URQL Provider
  • 05:45 - URQL’s useQuery hook
  • 09:30 - SSR with URQL in Next.js
  • 15:45 - SSG with URQL in Next.js
  • 19:45 - Conclusion

#apollo #next #react

Can URQL Replace Apollo Client? URQL tutorial with SSR and SSG in under 20 minutes using Next.js
4.40 GEEK