I have a situation where I get FOUC whenever the ErrorBoundary in my root is rendered or when I transition back to a working route. I believe this is because the styles are being remounted within the ErrorBoundary and with the stylesheet not currently being cached(will be resolved eventually), results in a short period where the browser has to download the stylesheet again and the content is presented unstyled.
I suspect this will be resolved once some cache headers are added to the stylesheet but I wanted to see if this is normal behaviour. I would have expected(hoped) that if the link tag loading the stylesheet hasn't changed, that react would not remove the element from the dom. Is this something that is just unavoidable or does it likely indicate i'm doing something wrong?