-
|
For example, Tanstack query sets the Is this behavior already supported by pinia-colada? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 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.
-
|
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.
-
|
I wanted to use this to retry network error transparently during dev, but since it returns the first error immediately instead of only the last error and it's not configurable, I'll just have to implement retries myself. Which defeats the purpose of the plugin... |
Beta Was this translation helpful? Give feedback.
Done in #509