davy_yg
1 year ago

dispatch

Posted 1 year ago by davy_yg

What is dispatch for in Javascript?

for example:

 if(!tokenFromStorage){
          reject();  
        }
        dispatch(authSetToken(tokenfromStorage));
        resolve(tokenFromStorage);

Please sign in or create an account to participate in this conversation.