Next.js Discord

Discord Forum

refreshWhenHidden not working when switching windows

Unanswered
Crazy ant posted this in #help-forum
Open in Discord
Crazy antOP
What does "when window is hidden" mean?

5 Replies

@Crazy ant What does "when window is hidden" mean?
refreshWhenHidden = false: polling when the window is invisible (if refreshInterval is enabled)
Crazy antOP
yeah so that means setting both hidden and interval to true will refresh the data when the window is not focused, right?
refreshWhenHidden= true, refreshInterval = 10 I think
Crazy antOP
hmm. ok gonna try that again. I tested it earlier and it still refreshes when I am focused on the window