docs: Better comparison info about Apollo (#727)
Apollo does a deep comparison of the variables object when deciding whether or not the query needs to be re-executed. I can’t find this in the documentation, but know it to be true from experience. A quick squiz at the source code seems to indicate this is where it’s implemented: https://github.com/trojanowski/react-apollo-hooks/blob/master/src/useQuery.ts#L119 (‘objToKey’ serialises the variables object.)
J
James Russell committed
fe44466a694fcc641e9628dc6d5eb389df8e03e3
Parent: 7b24b7e
Committed by GitHub <noreply@github.com>
on 7/9/2020, 11:33:20 PM