You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way of not replaying actions in the blacklist? I have code that waits for an action to be dispatched and them runs side-effects from there, by means of redux-saga:
function*saga(getState){
...
constgetTasks=()=>getState().TaskReducer;while(true){yieldtake(QUEUE);//this is the line that waits for the next QUEUE action//those are the effects I don't wan't to redofor(const{type, payload}ofgetTasks()){switch(type){caseSPAWN: yieldcall(fetchSpawn,payload);break;caseINIT: yieldcall(fetchInit,getWorkers(),payload);break;caseSUBSCRIBE: yieldcall(fetchSubscribe,getWorkers(),payload);break;
...
}};}}
Maybe we should make skipping blacklisted actions an option?
I am not sure if this could be useful in other cases, but I think it makes sense to be an addon. XD
The text was updated successfully, but these errors were encountered:
redux-devtools-filter-actions acts like a monitor, so it is only a view without the ability to change anything in the lifted state (we cannot remove actions from devtools store).
Is there a way of not replaying actions in the blacklist? I have code that waits for an action to be dispatched and them runs side-effects from there, by means of redux-saga:
Maybe we should make skipping blacklisted actions an option?
I am not sure if this could be useful in other cases, but I think it makes sense to be an addon. XD
The text was updated successfully, but these errors were encountered: