Skip to content
Source
Sign inSign up
TanStack/query

useQuery Window Focus Loop #16

Closedjohnnyflinn(GitHub profile, opens in a new tab) opened this issue 1 comment

May be related to #8

Strange issue with what I believe has to do with window losing and then regaining focus.

Open below sandbox. "useEffect called" && "query called" should only happen once. However, if you click off the window (window loses focus) and click back on the window "query called" happens.

https://codesandbox.io/s/headless-fast-0s20z?fontsize=14

  1. tannerlinsley closed this

Sign in to join this conversation.