Skip to content

Commit ce8ae09

Browse files
authored
fix: forceUpdate
1 parent a125638 commit ce8ae09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/use.fetcher/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export default function useFetcher<T, ARG extends any>(
158158
isLoadingRef.current = false
159159
// trigger update
160160
!suspense && setVal(data)
161+
!suspense && val === data && forceUpdate();
161162
updated = true
162163
return getResult({ res: data })
163164
} catch (error) {

0 commit comments

Comments
 (0)