Hello, I have a react project with rtk and rtk query as data flow and API handlers and redux persist to store data in the browser. Now I have a problem using rtk query and is that when the user gets network errors like ERR_CONNECTION_RESET rtk query, it changes data to an empty value and I can't access previously persisted data. Is there a way to rtk change data only when the request is successful?
Hello, I have a react project with rtk and rtk query as data flow and API handlers and redux persist to store data in the browser. Now I have a problem using rtk query and is that when the user gets network errors like ERR_CONNECTION_RESET rtk query, it changes data to an empty value and I can't access previously persisted data. Is there a way to rtk change data only when the request is successful?