Mocking with MSW stops working when replacing document cache with Graphcache #3586
-
My setup uses MSW for mocking requests. It works well with document cache. But as soon as I switch to graphcache, data is no longer provided to components by The only difference in code is changing where I import What could be the reason for that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The reason is most likely that your data is missing the |
Beta Was this translation helpful? Give feedback.
The reason is most likely that your data is missing the
__typename
property, i.e. the selection-set is not fully completed. You can test this out by leveraging thelogger
property on the construction of your cache-exchange.