I'm experiencing an issue with barrier behavior. When using a barrier like this:
const getTokenBeforeAuthBarrier = createBarrier({
active: combine($token, $now, isTokenExpired),
perform: [renewJWTMutation],
});
I encounter unexpected query retry behavior when the request fails with any error.
I think we need a parameter like { retryRequestAfterError: false } to prevent this behavior, or { retryRequestFilter: (requestResult) => ... }.
example: https://stackblitz.com/edit/vitejs-vite-gu6qvqci?file=src%2FApp.tsx