Skip to content

Error: Component must be wrapped with <Container.Provider> #79

Open
@elliottkember

Description

@elliottkember

I'm using react-hot-loader, and whenever I update a container, I get the above error. It seems to happen when a sub-component uses the container that's provided by a parent component. I can't figure out how to fix this.

It doesn't seem to matter whether I use MyContainer.useContainer() or useContainer(MyContainer) - still the same result.

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