mayu-live / framework

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
https://mayu.live
GNU Affero General Public License v3.0
130 stars 4 forks source link

Stylesheets are not unloaded when components are unmounted #1

Open aalin opened 1 year ago

aalin commented 1 year ago

This is not so much of an issue in production, but in development, if you update CSS files a lot, they will all just be added to the document, and the old ones will just stay there forever.

One solution would be to have some sort of reference count for what stylesheets are active and remove them when no components that use them are present in the VTree..