Skip to content

bug: Unable to import react-router's version of data() #22

@jahands

Description

@jahands

It's my understanding that orange-js doesn't want users to require installing react-router separately, which is why it re-exports everything from react-router.

Unfortunatley, this means that data is overridden by orange-js, which is used when throwing errors within loaders:
https://reactrouter.com/how-to/error-boundary#3-throw-data-in-loadersactions

Should orange-js rename it's data function? Or maybe re-export react under @orange-js/orange/react-router?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions