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
Sorry this isn't an issue but rather a feature request
I'd like to programmatically check if there is a cache hit in the render prop so that i can pass has hasCache prop to my component. So this is my use case:
I want to increase perceived performance in my RN app without caching my screen. I thought I could just use QueryRenderer with caching enabled by default then pass hasCache prop to my component. Then I could just refetch the whole data when that component is mounted using relay modern createRefetchContainer only if there is a cache hit. That way I could drastically improve perceived performance of my app.
The text was updated successfully, but these errors were encountered:
@SatyaFariz, the official QueryRenderer bundled with Relay has a prop dataFrom=STORE_THEN_NETWORK. It sounds like this is pretty close to what you are trying to accomplish.
Sorry this isn't an issue but rather a feature request
I'd like to programmatically check if there is a cache hit in the render prop so that i can pass has hasCache prop to my component. So this is my use case:
I want to increase perceived performance in my RN app without caching my screen. I thought I could just use QueryRenderer with caching enabled by default then pass hasCache prop to my component. Then I could just refetch the whole data when that component is mounted using relay modern createRefetchContainer only if there is a cache hit. That way I could drastically improve perceived performance of my app.
The text was updated successfully, but these errors were encountered: