tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > QueryOptions > refetchOnReconnect

QueryOptions.refetchOnReconnect property

If set to true, the query will refetch on reconnect if the data is stale. If set to false, the query will not refetch on reconnect. If set to 'always', the query will always refetch on reconnect. If set to a function, the function will be executed with the latest data and query to compute the value. Defaults to the value of networkOnline (true)

Signature:

refetchOnReconnect?: boolean | 'always';