Skip to content
New issue

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

Feature: Add "interceptor" #22

Open
sbernard31 opened this issue May 17, 2021 · 1 comment
Open

Feature: Add "interceptor" #22

sbernard31 opened this issue May 17, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sbernard31
Copy link

axios library provide an interceptor feature : https://github.com/axios/axios#interceptors

This is a useful idea to be able to apply a generic default behavior to all request.
This is pretty useful for example to handle error in a generic way.

Maybe this could be a good feature for vue-sse.

@tserkov tserkov self-assigned this May 21, 2021
@tserkov tserkov added the enhancement New feature or request label May 21, 2021
@tserkov
Copy link
Owner

tserkov commented May 21, 2021

Great suggestion! Not much trouble to actually get it added as well, since I already break out each message type into a single handler.

I'll add it to the roadmap.

@tserkov tserkov changed the title Feature Ideas: Add interceptor. Feature: Add "interceptor" May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants