From 79468d8d0de352a7f86258d98c5ef56708d481af Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 08:23:54 -0500 Subject: [PATCH] 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> --- .github/workflows/ci.yml | 2 +- playground/src/pages/users/tq-query.[id].vue | 30 +++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51647fdfe..a881347e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/playground/src/pages/users/tq-query.[id].vue b/playground/src/pages/users/tq-query.[id].vue index e7f29ee57..720468d8b 100644 --- a/playground/src/pages/users/tq-query.[id].vue +++ b/playground/src/pages/users/tq-query.[id].vue @@ -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, @@ -107,9 +109,7 @@ const { } = useMutation({ // mutationKey: ['hey'], networkMode: 'always', - onMutate(vars) { - - }, + onMutate(vars) {}, mutationFn: async (id: number) => { await delay(5000) return 'hey' @@ -147,9 +147,13 @@ const { - Previous + Previous | - Next + Next

TQ