Skip to content

Router breaks HMR with @preact/preset-vite #436

@JacobWennebro

Description

@JacobWennebro

I have found that using this package, it seemingly breaks Vite's HMR functionality for any components rendered inside of a route component.

This is quite problematic given that we often wrap our entire applications inside of the router. I have tested it and anything outside of the router updates perfectly fine with HMR.

"vite": "^4.0.0",
"@preact/preset-vite": "^2.4.0",
"preact-router": "^4.1.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions