-
-
Save yotavm/1757746ce5911b14b73d8f3ce69ec3df to your computer and use it in GitHub Desktop.
edge check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleSideEffects = sideEffects => sideEffect => next => action => { | |
try { | |
console.log(sideEffects) | |
sideEffect() | |
next(action); | |
} catch (e) { | |
console.log('error yotav', e); | |
} | |
}; | |
handleSideEffects({})(()=>{console.log('sideEffect')})((action)=>{console.log(action)})('action') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment