fix: typo in invariant

This commit is contained in:
Dmitriy Pleshevskiy 2021-05-16 17:34:23 +03:00
parent a1193cee47
commit 304611fb53

View file

@ -73,7 +73,7 @@ export function useLazyRequest<E extends AnyEndpoint>(
let isSameRequest = true;
if (isFunction(endpoint.url)) {
params = handlerConfig?.params ?? config?.params;
invariant(params, 'Endpoind required params');
invariant(params, 'Endpoint required params');
endpointUrl = endpoint.url(params);