Replies: 1 comment 5 replies
-
you can't run rendering shouldn't be slow, maybe you can somehow isolate and reproduce that? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using react query in react native application, when i open any screen i am calling api using react query. Inside query result i have loading,data,error,etc. But if i call api without InteractionManager.runAfterInteractions rendering will be slow. Is there any way i can call react query with InteractionManager.runAfterInteractions. If i keep query inside InteractionManager.runAfterInteraction i can't access loading,error,data.
InteractionManager.runAfterInteractions(() => {
const {isLoading,data,error} = fetchPosts()
})
Beta Was this translation helpful? Give feedback.
All reactions