Skip to content

Trouble switching to offlineExchange; runtime error: TypeError: Cannot read property 'length' of undefined #1453

Answered by kitten
rsdickerson asked this question in Q&A
Discussion options

You must be logged in to vote

Oh we probably made a mistake in the schema validation when we allowed partial schemas.

For Offline Support to work correctly you have to enable Schema Awareness, meaning that you'll have to pass in a full schema.

We have some instructions for that here: https://formidable.com/open-source/urql/docs/graphcache/schema-awareness/

Basically, we require this for offline support because in offline it'll become increasingly likely that Graphcache will have to deal with partial data.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants