Running queries on setInterval #1449
Answered
by
flybayer
PixelsCommander
asked this question in
Q&A
-
|
Hi I want to run queries on setInterval to refresh page content. And since queries require hooks I can't really put them inside of setInterval callback. In version 0.22 it was possible to call queries directly as promises without specifying the context but in 0.24 this seems to be not possible so running queries requires useQuery therefore I cant run them to refresh page. Any ideas on the solution? |
Beta Was this translation helpful? Give feedback.
Answered by
flybayer
Nov 10, 2020
Replies: 1 comment 1 reply
-
|
Did you try the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PixelsCommander
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you try the
refetchIntervalforuseQuery?https://blitzjs.com/docs/use-query