Skip to content

On component unmount, the controller is not destroyed. #55

@billvog

Description

@billvog

The bug

When creating a new React application with Vite's React template, it comes with StrictMode enabled.

StrictMode, mounts the component, then unmounts it and then mounts it again. It does that to check for errors.

That created a problem, where I had one controller in my JSX structure but because of the mount-unmount-mount situation I ended it up with two. That caused a number of problems down the line.

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