Handling Component Display Scenarios in a Dynamic Data Loading Environment
In a given scenario, a loader attempts to retrieve data, but encounters an outage in the service. This results in the display of an error component. Subsequently, even after the service is restored, the error component persists instead of the intended component.
I have also tried using the update but results remains the same.
2 Replies
subsequent-cyan•3y ago
Are you using the latest version? Error states are suppoosed to be automatically reset when the router reloads or the path changes.
flat-fuchsiaOP•3y ago
I am using the following:
I have updated them to the following:
However, even after the service recovers, it remains stuck in the error state. I observe that the error property still contains an error, and the icon is displayed in pink. Curiously, if I navigate away and then return to the original location, the functionality is restored. When I hover over links, the icon changes back to green, yet the main component persists as the error component, not switching back as expected.
@Tanner Linsley problem still exists for me do you have any example simulating the same behavior with react-query?