Skip to content

Commit

Permalink
fix(rtk-query): set fetch subscription timeout to 1s in getSuspendabl…
Browse files Browse the repository at this point in the history
…ePromise
  • Loading branch information
FaberVitale committed Apr 24, 2022
1 parent f994418 commit ffa9f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/toolkit/src/query/react/buildHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ const createSuspendablePromise = <
const fetchOnce = () => {
prefetch(args, {
force: true,
keepSubscriptionFor: 1,
})
}

Expand Down

0 comments on commit ffa9f08

Please sign in to comment.