Skip to content

Instantly share code, notes, and snippets.

@behnamazimi
Created June 2, 2020 18:21
Show Gist options
  • Save behnamazimi/a6a7964662eba5e7c572298dcfaad31e to your computer and use it in GitHub Desktop.
Save behnamazimi/a6a7964662eba5e7c572298dcfaad31e to your computer and use it in GitHub Desktop.
ClientHandler.setClient.js
new ClientHandler(clientConfig)
.setClient(manualClient)
.setHook(HOOKS.BEFORE_RESOLVE, res => res.body) // get result and return the data property
.fire({parallel: true})
.then(res=> {
//...
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment