3 ms·
Let us know how it goes, we'd love to know what you think! Note: You can also use this in real projects ;)
by mxstbr 10y ago
Let us know how it goes, we'd love to know what you think!
Note: You can also use this in real projects ;)
- andrewvijay 10y agoReal projects in the future may be! Because the current one involves a lot of components and I don't think this would be scaling well as it's gonna rerender the styles multiple times.
- mxstbr 10y agoSorry, how do you mean "rerender the styles multiple times"? The only time any styles ever change is if one of your interpolations changes, but otherwise we don't do much calculation at all! That being said, there might be a performance impact in massive (1000+ components) applications. We've tried it in medium apps, and haven't seen any performance impact yet. We're also going to build a babel transform to extract the static styles to get even better performance. (see https://news.ycombinator.com/item?id=12700280 https://news.ycombinator.com/item?id=12700280)
- andrewvijay 10y agoHmm yup I mistyped that. I was a bit worried about the performance because the app is a multi tab grafana like dashboard with real time data. I'll try by modifying components that dont change often. Will measure and go up from there.