#
PollingPolling gives you the ability to have a 'real-time' effect by causing a query to run at a specified interval. To enable polling for a query, pass a pollingInterval
to the useQuery
hook or action creator with an interval in milliseconds:
src/Pokemon.tsx
In an action creator without React Hooks:
Usage without React Hooks
If you use polling without the convenience of React Hooks, you will need to manually call updateSubscriptionOptions
on the promise ref to update the interval. This approach varies by framework but is possible everywhere. See the Svelte Example for one possibility.