Merge pull request #12 from pleshevskiy/bug-10
fix(request-hook): increase priority for handle...
This commit is contained in:
commit
fc9e4e3b40
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ export function useLazyRequest<R = Record<string, any>, V = Record<string, any>,
|
||||||
return Promise.resolve(state.data);
|
return Promise.resolve(state.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
const onComplete = config?.onComplete ?? handlerConfig?.onComplete;
|
const onComplete = handlerConfig?.onComplete ?? config?.onComplete;
|
||||||
const onFailure = handlerConfig?.onFailure ?? config?.onFailure;
|
const onFailure = handlerConfig?.onFailure ?? config?.onFailure;
|
||||||
|
|
||||||
dispatch({ type: 'call', headers, variables, params });
|
dispatch({ type: 'call', headers, variables, params });
|
||||||
|
|
Reference in a new issue