We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you add more interval fetch for query?
The text was updated successfully, but these errors were encountered:
I'd like to add this eventually, but in the meantime you can get the same thing with useEffect:
useEffect
const { query } = useEffect(store.query); useEffect(() => { const id = setInterval(() => { query.invalidate() }, 5000); return () => { clearInterval(id); }: }, [query]);
Sorry, something went wrong.
I'd like to add this eventually, but in the meantime you can get the same thing with useEffect: const { query } = useEffect(store.query); useEffect(() => { const id = setInterval(() => { query.invalidate() }, 5000); return () => { clearInterval(id); }: }, [query]);
Yah! me too. But i think own lib should support for this to avoid boilerplate code
No branches or pull requests
Can you add more interval fetch for query?
The text was updated successfully, but these errors were encountered: