futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
370 stars 22 forks source link

Deregister from StyleRegistry #7

Closed futursolo closed 3 years ago

futursolo commented 3 years ago

Currently all generated styles are held in a hash map. We need to provide a way to deregister styles.

Deregistering means:

It wouldn't be used for the most time. But might be useful for global css that needs to be removed from DOM when style is changed.