Reports an offline failure whenever a react-query mutation pauses. With the
default networkMode ("online"), react-query pauses mutations while the
browser is offline, so the request layer (which reports offline failures)
never runs for them. Mutations are always user actions, so the GET filter
does not apply — and because react-query resumes paused mutations on
reconnect, these report willRetryAutomatically: true.
Call it once per app, on the query client's mutation cache, right where the
client is constructed.
Reports an offline failure whenever a react-query mutation pauses. With the default networkMode ("online"), react-query pauses mutations while the browser is offline, so the request layer (which reports offline failures) never runs for them. Mutations are always user actions, so the GET filter does not apply — and because react-query resumes paused mutations on reconnect, these report
willRetryAutomatically: true.Call it once per app, on the query client's mutation cache, right where the client is constructed.