Skip to content

New styles overridden in DOM after hot update. #23

Closed
@phyllisstein

Description

@phyllisstein

👋 I've been working on bootstrapping a new repo with your new universal family and running into some trouble with CSS hot reloading. Hot updates are applied, but they appear earlier in the cascade than the original styles and are consequently overridden by the CSS they're meant to replace. Here, I've changed the h1's color from red to blue; you can see that the new style is loaded, but not applied:

screen shot 1

Just curious whether you'd seen anything like this before. If it helps, there's a small amount of code at https://github.com/ignota/ignota2 that shows what I think should work. (Frustratingly, it's largely pulled from another repo where CSS HMR is working, and I can't account for the difference. 😡 )

Thanks in advance for any thoughts you might have!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions