are functions you dispatch with thunk middleware synchronous by default? I mean, I know that you can make these functions async and for example dispatch redux actions after some awaits, but is dispatched function (which gets dispatch as argument) call sync or async by default? (if you won't make it async explicitly)
For example
const dispatch = useDispatch();
dispatch(randomCasualSyncFunction());
doStuffAfterRandomCasualSyncFunctionReturns();
will doStuffAfterRandomCasualSyncFunctionReturns() get called after randomCasualSyncFunction() (which isn't async itself) returns?
question from:
https://stackoverflow.com/questions/65837600/is-thunk-action-synchronous 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…