fix: typo in invariant
This commit is contained in:
parent
a1193cee47
commit
304611fb53
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ export function useLazyRequest<E extends AnyEndpoint>(
|
||||||
let isSameRequest = true;
|
let isSameRequest = true;
|
||||||
if (isFunction(endpoint.url)) {
|
if (isFunction(endpoint.url)) {
|
||||||
params = handlerConfig?.params ?? config?.params;
|
params = handlerConfig?.params ?? config?.params;
|
||||||
invariant(params, 'Endpoind required params');
|
invariant(params, 'Endpoint required params');
|
||||||
|
|
||||||
endpointUrl = endpoint.url(params);
|
endpointUrl = endpoint.url(params);
|
||||||
|
|
||||||
|
|
Reference in a new issue