We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3069e12 commit efad66fCopy full SHA for efad66f
src/useRequest/index.ts
@@ -88,7 +88,7 @@ export function useRequest<T = any>(
88
export function useRequest<T = any>(
89
...args: any[]
90
): OverallUseRequestReturn<T> & PromiseLike<OverallUseRequestReturn<T>> {
91
- let url: string = '';
+ let url: string | undefined;
92
93
const tmpArgs = [...args]; // copy
94
if (tmpArgs.length > 0 && isString(tmpArgs[0])) {
0 commit comments