redux-saga-final-form
Advanced tools
Comparing version 2.1.0-1 to 2.1.0-2
@@ -41,7 +41,9 @@ "use strict"; | ||
const pendingCallbacks = storeMap.get(store); | ||
const cbInfos = pendingCallbacks.get(action.type); | ||
if (cbInfos) { | ||
for (const cbInfo of cbInfos) { | ||
pendingCallbacks.delete(cbInfo.toClear); | ||
cbInfo.callback(action.payload); | ||
if (pendingCallbacks) { | ||
const cbInfos = pendingCallbacks.get(action.type); | ||
if (cbInfos) { | ||
for (const cbInfo of cbInfos) { | ||
pendingCallbacks.delete(cbInfo.toClear); | ||
cbInfo.callback(action.payload); | ||
} | ||
} | ||
@@ -48,0 +50,0 @@ } |
{ | ||
"name": "redux-saga-final-form", | ||
"version": "2.1.0-1", | ||
"version": "2.1.0-2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -48,7 +48,9 @@ import { useDispatch, useStore } from 'react-redux'; | ||
const pendingCallbacks = storeMap.get(store as any)!; | ||
const cbInfos = pendingCallbacks.get(action.type)!; | ||
if (cbInfos) { | ||
for (const cbInfo of cbInfos) { | ||
pendingCallbacks.delete(cbInfo.toClear) | ||
cbInfo.callback(action.payload); | ||
if (pendingCallbacks) { | ||
const cbInfos = pendingCallbacks.get(action.type)!; | ||
if (cbInfos) { | ||
for (const cbInfo of cbInfos) { | ||
pendingCallbacks.delete(cbInfo.toClear) | ||
cbInfo.callback(action.payload); | ||
} | ||
} | ||
@@ -55,0 +57,0 @@ } |
12401
172