File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed
playground/src/pages/users Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 54
54
55
55
- name : Upload coverage to Codecov
56
56
if : ${{ matrix.os == 'ubuntu-latest' && matrix.node == 'lts/*' }}
57
- uses : codecov/codecov-action@v4
57
+ uses : codecov/codecov-action@v5
58
58
with :
59
59
token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -89,16 +89,18 @@ let _id = 0
89
89
function testRefetch() {
90
90
const id = ++ _id
91
91
console .log (id + ' refetch started' )
92
- refetch ({ cancelRefetch: true , throwOnError: true }).then (res => {
93
- console .log (id + ' refetch finished' , res )
94
- }).catch (err => {
95
- console .log (id + ' refetch error' , err )
96
- }).finally (() => {
97
- console .log (id + ' refetch finally' )
98
- })
92
+ refetch ({ cancelRefetch: true , throwOnError: true })
93
+ .then ((res ) => {
94
+ console .log (id + ' refetch finished' , res )
95
+ })
96
+ .catch ((err ) => {
97
+ console .log (id + ' refetch error' , err )
98
+ })
99
+ .finally (() => {
100
+ console .log (id + ' refetch finally' )
101
+ })
99
102
}
100
103
101
-
102
104
const {
103
105
data,
104
106
error,
@@ -107,9 +109,7 @@ const {
107
109
} = useMutation ({
108
110
// mutationKey: ['hey'],
109
111
networkMode: ' always' ,
110
- onMutate(vars ) {
111
-
112
- },
112
+ onMutate(vars ) {},
113
113
mutationFn : async (id : number ) => {
114
114
await delay (5000 )
115
115
return ' hey'
@@ -147,9 +147,13 @@ const {
147
147
<button @click =" testRefetch()" >Refresh 2</button >
148
148
</fieldset >
149
149
150
- <RouterLink :to =" { params: { id: Number(route.params.id) - 1 } }" >Previous</RouterLink >
150
+ <RouterLink :to =" { params: { id: Number(route.params.id) - 1 } }"
151
+ >Previous</RouterLink
152
+ >
151
153
|
152
- <RouterLink :to =" { params: { id: Number(route.params.id) + 1 } }" >Next</RouterLink >
154
+ <RouterLink :to =" { params: { id: Number(route.params.id) + 1 } }"
155
+ >Next</RouterLink
156
+ >
153
157
154
158
<h2 >TQ</h2 >
155
159
You can’t perform that action at this time.
0 commit comments