Vite with Styled Components reloading whole tree #17376
Unanswered
farhansaeed07
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My CRA project is moving to Vite. Everything is operating as it should, however the biggest problem I'm having is that when I make a change to a styled component, the entire tree linking to the element is reloaded. For example, I used styledcomponents to design a button that I utilize across my entire application. Therefore, all of the files in which I have used that button are reloaded anytime I make changes to its styling. If I use basic CSS to style a component, it functions well. How then can I stop this one?
Beta Was this translation helpful? Give feedback.
All reactions