Skip to content

Commit 7c6b0cd

Browse files
fix persistParams
1 parent 814e8b5 commit 7c6b0cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/fetcher.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,13 @@ async function fetchUrl<R>(request: Request, persistParams: string[]) {
208208
}
209209

210210
function createFetch<OP>(fetch: _TypedFetch<OP>): TypedFetch<OP> {
211-
const fun = async (payload: OpArgType<OP>, init?: RequestInit) => {
211+
const fun = async (
212+
payload: OpArgType<OP>,
213+
init?: RequestInit,
214+
persistParams?: [],
215+
) => {
212216
try {
213-
return await fetch(payload, init)
217+
return await fetch(payload, init, persistParams)
214218
} catch (err) {
215219
if (err instanceof ApiError) {
216220
throw new fun.Error(err)

0 commit comments

Comments
 (0)