We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In current project I heavily use your library. Sometimes I need to abort opened xhr requests.
I think you could add one time event listeners. Look at this
... let openedXHR = []; api.once('request', (xhr) => { openedXHR.push(xhr); }) api.res('account').res('balance').get().then(...) openedXHR.forEach((xhr) => xhr.abort())
I can't use request event, because RestClient created once and reused everywhere.
request
RestClient
The text was updated successfully, but these errors were encountered:
So, i'm back in programmer's world, and now it's time to rise ARC again. Can you say more detail about it issue?
Sorry, something went wrong.
Added per-request-events, closes #7, #3
048c820
Now you can use this:
api.res('account').res('balance').get().on('request', xhr => openedXHR.push(xhr));
No branches or pull requests
In current project I heavily use your library. Sometimes I need to abort opened xhr requests.
I think you could add one time event listeners. Look at this
I can't use
request
event, becauseRestClient
created once and reused everywhere.The text was updated successfully, but these errors were encountered: