diff --git a/src/lazy_request_hook.ts b/src/lazy_request_hook.ts index 5508782..a45ba52 100644 --- a/src/lazy_request_hook.ts +++ b/src/lazy_request_hook.ts @@ -73,7 +73,7 @@ export function useLazyRequest( 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);