Skip to content

Grouping exports breaks the devtools injection #198

@jozefmery

Description

@jozefmery

Hi,

firstly, thank You for maintaining various react-router/remix related utilities.

I noticed that the devtools injection seems to assume a direct export style. Instead of direct exports, I group them at the end of the file for consistency reasons, but that seems to break the devtools plugin injection with the following error:

Identifier 'loader' has already been declared.

Here is a minimal stackblitz reproduction.

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