How to caching error 404 show/edit action of resources ?
How to caching error 404 show/edit action of resources ?
reactQueryClientConfig property. This allows you to define custom retry logic that applies to all queries and mutations.retry function is used to determine whether a query or mutation should be retried based on the error received.statusCode is 200, and if so, it prevents a retry. Otherwise, it allows retries.retry function to suit your specific needs.findDOMNode is being used in your codebase. This function is often used in older React components or third-party libraries.findDOMNode. Update to the latest version if available.findDOMNode. If the issue persists due to third-party dependencies, keeping an eye on updates from those libraries is advisable.reactQueryClientConfigretryretryfindDOMNode is deprecated and will be removed in the nextfindDOMNodefindDOMNodefindDOMNode<Refine
reactQueryClientConfig={{
defaultOptions: {
queries: {
retry: (retryCount, error) => {
if (error.statusCode === 200) {
return false;
}
return true;
},
},
mutations: {
retry: (retryCount, error) => {
if (error.statusCode === 200) {
return false;
}
return true;
},
},
},
}}
/>