Skip to content

Instantly share code, notes, and snippets.

@DoctorRainer
Last active July 18, 2020 17:34
Show Gist options
  • Select an option

  • Save DoctorRainer/26263265f4cf7f9f5b8f1d1f58baa2ef to your computer and use it in GitHub Desktop.

Select an option

Save DoctorRainer/26263265f4cf7f9f5b8f1d1f58baa2ef to your computer and use it in GitHub Desktop.
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