Reports a request that failed while the browser is offline. No-op for GET
requests (a failed read is already covered by the offline banner, while the
snackbar this triggers says an action didn't go through) and no-op while
the browser reports being online, so request layers can call it
unconditionally.
Safe to call from non-React code — OfflineNotifications (in
@tremendous/smart-components) surfaces the failure as a snackbar wherever
it is mounted.
Reports a request that failed while the browser is offline. No-op for GET requests (a failed read is already covered by the offline banner, while the snackbar this triggers says an action didn't go through) and no-op while the browser reports being online, so request layers can call it unconditionally.
Safe to call from non-React code —
OfflineNotifications(in@tremendous/smart-components) surfaces the failure as a snackbar wherever it is mounted.