You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you will see many more stylesheets beeing created, even for things that are not mounted
Expected Behavior
styled-components/native should only create Stylesheets for components actually created
Actual Behavior
styled-components/native creates stylesheet for unused components as well
The text was updated successfully, but these errors were encountered:
macrozone
changed the title
styled-components injects also styles for non loaded components on react-native-web
styled-components injects styles for non loaded components on react-native-web
Mar 1, 2024
Environment
System:
Binaries:
Reproduction
I noticed this problem when tracing StyleSheet.create on react-native-web in the other issue #4270
Steps to reproduce
you can actually use the same repo as in #4270
https://github.com/macrozone/styled-components-rnw-reproduction
function create(styles) {
addconsole.log("create stylesheet", styles)
Expected Behavior
styled-components/native should only create Stylesheets for components actually created
Actual Behavior
styled-components/native creates stylesheet for unused components as well
The text was updated successfully, but these errors were encountered: