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

Опубликовано: 04 Март 2021
на канале: Leigh Halliday
10,568
380

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.

---------- Course

Want to go deeper with Next.js? Join me in my Next Level Next.js course where over 29 videos and 8 hours of content we'll build a full application from start to finish. We use TypeScript, GraphQL, Prisma, Apollo, Mapbox, Firebase and lots more. https://courses.leighhalliday.com/nex...

---------- Links

URQL - https://formidable.com/open-source/urql/
Source Code - https://github.com/leighhalliday/urql...
Starting Code - https://github.com/leighhalliday/urql...

---------- Connect

Join this channel -    / @leighhalliday  
Join me on Discord -   / discord  

---------- 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


Смотрите видео Can URQL replace Apollo Client? URQL tutorial with SSR and SSG in under 20 minutes using Next.js онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Leigh Halliday 04 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 10,568 раз и оно понравилось 380 людям.