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
When accessing the cache (not firing a /graphql request) on the first render, the data value returned is undefined. That creates an annoying flickering effect if you have some kind of loading animation.
You can see how switching between different components, sometimes creates a flash of the red loading background before displaying the data even tho the data is already on the cache.
The text was updated successfully, but these errors were encountered:
larsbs
changed the title
data = undefined the first render when accessing the cache
The value of data is undefined on the first render when accessing the cache
Jun 6, 2019
When accessing the cache (not firing a
/graphql
request) on the first render, the data value returned isundefined
. That creates an annoying flickering effect if you have some kind of loading animation.Sample code:
https://codesandbox.io/s/nifty-banzai-7q0bz\
You can see how switching between different components, sometimes creates a flash of the red loading background before displaying the data even tho the data is already on the cache.
The text was updated successfully, but these errors were encountered: