Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

interceptors return function with Promise.reject #678

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

laozhujia
Copy link

the reject add to every response handler.
when interceptor next function params return a Promise.reject() the first response handler will catch it and run reject.
if the reject not throws new error the next response handlers will still run resolve function with the return value of reject function

the reject  add to every response handler.
when interceptor next function params return a Promise.reject() the first response handler will catch it and run reject.
if the reject not throw new error the next response handlers will still run resolve function with the reject  return value
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant