Replies: 2 comments 2 replies
-
I think that the plugin could evolve a bit:
The delay plugin adds extra stuff (https://github.com/posva/pinia-colada/blob/main/plugins/delay/src/index.ts#L83) and the retry plugin should too |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is helpful, and hope it also integrates well with other plugins like the following example: queryCache.$onAction(({ name, onError }) => {
if (name === 'fetch') {
onError((error) => {
// trigger a notification after all retries have finished
})
}
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@pinia/colada-plugin-retry
is very useful, but I wonder if there is a way to show the error only after all retries have failed.It would be very useful in case of temporary network failures.
For example, Tanstack query sets the
error
variable only after all retries failed: https://tanstack.com/query/latest/docs/framework/vue/guides/query-retriesIs this behavior already supported by pinia-colada?
Beta Was this translation helpful? Give feedback.
All reactions