redux-async-queue
redux-async-queue copied to clipboard
how to abort the queue
@zackargyle thanks for your work.
and can you teach me how to interrupt the queue?
There is currently no way to abort or interrupt the queue. I'd be happy to review a PR if you'd like to add the functionality! I could also provide ideas on how to implement if you'd like like some assistance :)
👍
I am looking to abort queue. My scenario is after when user logout queue should be killed too.
to implement abort queue can we add some redux state property to monitor. if its becomes invalid then clear queue? something like this: ...in async action { queue: ..., callback:..., toMonitor: 'session.isConnected' // just to say }
... in redux-async-queue dequeue() { const state = getState(); const val = R.path(toMonitor.split('.'),state) //if val is empty or invalid then set queue =[] }
@zackargyle forgot this repo.