-
-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Labels
Description
I'm seeing an issue with style-loader usable and HMR when the usable refs count is > 1. In this scenario, when a style module is updated the style disappears from the DOM but is never reinserted/updated. In the case where refs === 1, everything works as expected.
Looking at the code, I'm a little confused by how the refs in usable.js interacts with the refs count inside addStyles. But from a little debugging, it looks like the dispose callback in usable.js is getting called but exports.ref is not because refs > 0.