Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

jnsandrew/apollo-cache-error

Repository files navigation

This is a reproduction of a weird issue in apollo where the cache is updated but the component rerenders with the old data.

This is the only way I can reproduce it - with storybook + msw for mocking.

yarn install then yarn start

You can see the value is "false", and when clicking the button it is still "false" when it should be "true". You can see this by looking in the console - it outputs the response. In response.data, the value is "false", but in response.client.cache.data the value is "true"

Issue thread: apollographql/apollo-client#5963

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published