Skip to content

Commit

Permalink
chore(deps): update codecov/codecov-action action to v5 (#541)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and autofix-ci[bot] authored Nov 18, 2024
1 parent bc72910 commit 79468d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ jobs:

- name: Upload coverage to Codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 'lts/*' }}
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
30 changes: 17 additions & 13 deletions playground/src/pages/users/tq-query.[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,18 @@ let _id = 0
function testRefetch() {
const id = ++_id
console.log(id + ' refetch started')
refetch({ cancelRefetch: true, throwOnError: true }).then(res => {
console.log(id + ' refetch finished', res)
}).catch(err => {
console.log(id + ' refetch error', err)
}).finally(() => {
console.log(id + ' refetch finally')
})
refetch({ cancelRefetch: true, throwOnError: true })
.then((res) => {
console.log(id + ' refetch finished', res)
})
.catch((err) => {
console.log(id + ' refetch error', err)
})
.finally(() => {
console.log(id + ' refetch finally')
})
}
const {
data,
error,
Expand All @@ -107,9 +109,7 @@ const {
} = useMutation({
// mutationKey: ['hey'],
networkMode: 'always',
onMutate(vars) {
},
onMutate(vars) {},
mutationFn: async (id: number) => {
await delay(5000)
return 'hey'
Expand Down Expand Up @@ -147,9 +147,13 @@ const {
<button @click="testRefetch()">Refresh 2</button>
</fieldset>

<RouterLink :to="{ params: { id: Number(route.params.id) - 1 } }">Previous</RouterLink>
<RouterLink :to="{ params: { id: Number(route.params.id) - 1 } }"
>Previous</RouterLink
>
|
<RouterLink :to="{ params: { id: Number(route.params.id) + 1 } }">Next</RouterLink>
<RouterLink :to="{ params: { id: Number(route.params.id) + 1 } }"
>Next</RouterLink
>

<h2>TQ</h2>

Expand Down

0 comments on commit 79468d8

Please sign in to comment.