Skip to content

ofetch Interceptors (onResponseError etc..) #349

Discussion options

You must be logged in to vote

Hey @AntonLugtenburg! Good question 😄 I've recently covered this one via Nuxt hook which you can subscribe to - sanctum:error. Overriding ofetch interceptors is not the best way since it might conflict with an existing behaviour, so it would be better to keep your business logic separated.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@AntonLugtenburg
Comment options

@manchenkoff
Comment options

@AntonLugtenburg
Comment options

@manchenkoff
Comment options

@manchenkoff
Comment options

Answer selected by manchenkoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants