msmfsd / apollo-error-tmpt-pr-2513

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo Client Error Template

See pr2513: apollographql/apollo-client#2513

to test

  • npm run start
  • Click REFETCH WITH ERROR
  • click REFETCH WITH DATA

result

  • error not cleared on a successful refetch result
  • loading not updated while doing a refetch
  • people data not set to undefined on error^

^ data is cached? note that fetchPolicy is network-only so it shouldn't cache I would think

About


Languages

Language:JavaScript 75.9%Language:HTML 22.2%Language:CSS 1.9%