Skip to content

Commit 79468d8

Browse files
chore(deps): update codecov/codecov-action action to v5 (#541)
* chore(deps): update codecov/codecov-action action to v5 * style: fix code style --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent bc72910 commit 79468d8

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ jobs:
5454

5555
- name: Upload coverage to Codecov
5656
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 'lts/*' }}
57-
uses: codecov/codecov-action@v4
57+
uses: codecov/codecov-action@v5
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}

playground/src/pages/users/tq-query.[id].vue

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,18 @@ let _id = 0
8989
function testRefetch() {
9090
const id = ++_id
9191
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+
})
99102
}
100103
101-
102104
const {
103105
data,
104106
error,
@@ -107,9 +109,7 @@ const {
107109
} = useMutation({
108110
// mutationKey: ['hey'],
109111
networkMode: 'always',
110-
onMutate(vars) {
111-
112-
},
112+
onMutate(vars) {},
113113
mutationFn: async (id: number) => {
114114
await delay(5000)
115115
return 'hey'
@@ -147,9 +147,13 @@ const {
147147
<button @click="testRefetch()">Refresh 2</button>
148148
</fieldset>
149149

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+
>
151153
|
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+
>
153157

154158
<h2>TQ</h2>
155159

0 commit comments

Comments
 (0)