Last active
July 18, 2020 17:34
-
-
Save DoctorRyner/26263265f4cf7f9f5b8f1d1f58baa2ef to your computer and use it in GitHub Desktop.
This file contains 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
export const thunkSendMessage = ( | |
message: string | |
): ThunkAction<void, StoreState, unknown, Redux.Action<string>> => async dispatch => { | |
const asyncResp = await exampleAPI() | |
console.log ("WHY CAN'T I SEE THIS???") | |
SetInput (dispatch) (message) | |
} | |
function exampleAPI() { | |
return Promise.resolve('Async Chat Bot') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment