Skip to content
Discussion options

You must be logged in to vote

Just wanted to post the solution here. The missing key was to pass the custom client to the Vue plugin init, in main.ts:

app.use(VueQueryPlugin, {
  queryClient: new QueryClient({
    queryCache: new QueryCache({
      onError: (error, query) => {
        if (query.meta?.errorMessage) {
          console.error('uh oh!', query.meta.errorMessage);
        }
      },
    }),
  }),
});

Works great!

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@ffxsam
Comment options

@ffxsam
Comment options

@TkDodo
Comment options

@ffxsam
Comment options

@TkDodo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ffxsam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants