Skip to content

Minimal reproduction of issues I'm having with urql's graphcache

Notifications You must be signed in to change notification settings

antontsvil/urql-graphcache-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Goal

Configure a graphql client that will:

  • Query for a list of items (Lifts in this case)
  • Have a detail page where we query for a singular Lift
  • Display the single item's cached data from the list before the graphql call request completes.

Success with Apollo

Couldn't figure this out in URQL, but Apollo will allow you if you:

  • ensure there is a typePolicies entry for the singular query to link it to its respective cache entry via __typedname and args.id
  • When using hooks, set the returnPartialData option to true.

About

Minimal reproduction of issues I'm having with urql's graphcache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published