Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 307 Bytes

empty-outbox.md

File metadata and controls

10 lines (7 loc) · 307 Bytes

Empty Outbox

If you want to drop any unresolved offline actions (for instance when a user logs out, switches to a different organisation)

Dispatch a reset state event as follows:

import { RESET_STATE } from "@redux-offline/redux-offline/lib/constants";
store.dispatch({ type: RESET_STATE });