You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ...
[ * ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I use apollo-link-scalars to serialize and parse Dates. for my specific case, i need to send the time zone with the date. So i use the serialize function to transform and send the date in this format: 2023-08-19T02:00:00+02:00
I have a request with an input variable of type Date that is nullable, if i change this variable and then I put it back to the first value, the request will re-launch even with the cache-first fetchPolicy (using the useQuery hook).
This behavior is not preset if the serialize function only does a toISOString
My guess is apollo when comparing old to new values, uses the old values that have been serialized using the custom serialize function, but serializes to new values using the default one (toJSON function). Just a guess thought.
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
[ * ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I use apollo-link-scalars to serialize and parse Dates. for my specific case, i need to send the time zone with the date. So i use the serialize function to transform and send the date in this format: 2023-08-19T02:00:00+02:00
I have a request with an input variable of type Date that is nullable, if i change this variable and then I put it back to the first value, the request will re-launch even with the cache-first fetchPolicy (using the useQuery hook).
This behavior is not preset if the serialize function only does a toISOString
so this code will work correctly
while this one will re-launch query it has already fetched with fetchPolicy to cache-first
My guess is apollo when comparing old to new values, uses the old values that have been serialized using the custom serialize function, but serializes to new values using the default one (toJSON function). Just a guess thought.
The text was updated successfully, but these errors were encountered: