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 ac20114 commit 1b509b7Copy full SHA for 1b509b7
packages/core/useFetch/index.ts
@@ -126,7 +126,7 @@ export function useFetch<T>(
126
payload: undefined as unknown,
127
};
128
129
- const promise$ = $<T>();
+ const promise$ = $<T>(fetchOptions?.initialData);
130
131
const {
132
fetch = window?.fetch,
packages/core/useFetch/type.ts
@@ -197,7 +197,7 @@ export interface UseFetchReturn<T> {
197
/**
198
* promise stream
199
*/
200
- promise$: Stream<T>;
+ promise$: Stream<T | undefined, true>;
201
202
203
* Manually call the fetch
0 commit comments