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
Currently hot reload for CSS URL's found in components will only work if the same URL is also referenced from the top level DOM. This is because those top level links are the only ones that shadow-cljs and figwheel will hot reload; so we observe them to determine when to update the component CSS.
But I have an idea that may work to enable hot reload for CSS not referenced in the top level.
The Idea:
For any CSS URLs referenced from a component and not the top level, dynamically add a link in the top level, with a media query that always fails. This will give the hot reload engine and Zero a node to synchronize on, without affecting the styling of the top level document.
The text was updated successfully, but these errors were encountered:
Currently hot reload for CSS URL's found in components will only work if the same URL is also referenced from the top level DOM. This is because those top level links are the only ones that shadow-cljs and figwheel will hot reload; so we observe them to determine when to update the component CSS.
But I have an idea that may work to enable hot reload for CSS not referenced in the top level.
The Idea:
For any CSS URLs referenced from a component and not the top level, dynamically add a link in the top level, with a
media
query that always fails. This will give the hot reload engine and Zero a node to synchronize on, without affecting the styling of the top level document.The text was updated successfully, but these errors were encountered: