Skip to content

Commit 7cabf53

Browse files
committed
v1.2.3
1 parent 16c6dfb commit 7cabf53

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.2.3
4+
5+
- Fixed an issue where cancelled requests would not mark a query as stale, especially if that query had been manually refetched before its stale timeout had lapsed
6+
37
## 1.2.2
48

59
- Fixed an issue where garbage collection was messing with proper test cleanup

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-query",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
55
"author": "tannerlinsley",
66
"license": "MIT",

src/queryCache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ export function defaultQueryReducer(state, action) {
501501
return {
502502
...state,
503503
isFetching: false,
504+
isStale: true,
504505
...(!action.cancelled && {
505506
status: statusError,
506507
error: action.error,
507-
isStale: true,
508508
}),
509509
}
510510
default:

0 commit comments

Comments
 (0)