-
Hi! Help me understand this behavior:
If I add Why does What am I overlooking here? Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
very likely because you are focused on the code window in codesandox or the browser devtools that you have opened to look at the network tab. By clicking on the button, you raise a Click anywhere in the white area before clicking the button to confirm it, but given that you've already mentioned |
Beta Was this translation helpful? Give feedback.
very likely because you are focused on the code window in codesandox or the browser devtools that you have opened to look at the network tab. By clicking on the button, you raise a
windowFocus
event, which triggers a fetch before the button click event fires.Click anywhere in the white area before clicking the button to confirm it, but given that you've already mentioned
refetchOnWindowFocus
, this is likely the reason.