Skip to content

Commit

Permalink
feat: return promise when invalidating query
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 16, 2024
1 parent 1a738fb commit c431284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/query-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ export const useQueryCache = defineStore(QUERY_STORE_ID, () => {
// reset any pending request
entry.pending = null
// force refresh
refetch(entry)
// TODO: test that it returns a promise that resolves when the refresh is done
return refetch(entry)
}
}
}
Expand Down

0 comments on commit c431284

Please sign in to comment.