Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[📖] re-exportable route loaders wrong import/export #7100

Open
maiieul opened this issue Nov 26, 2024 · 0 comments
Open

[📖] re-exportable route loaders wrong import/export #7100

maiieul opened this issue Nov 26, 2024 · 0 comments
Labels
COMP: docs Improvements or additions to documentation STATUS-1: needs triage New issue which needs to be triaged

Comments

@maiieul
Copy link
Contributor

maiieul commented Nov 26, 2024

Suggestion

It's not possible to

import { useCommonRouteAction, useCommonRouteLoader } from './shared/loaders';
 
// As mentioned, here we are re-exporting them
export { useCommonRouteAction, useCommonRouteLoader } from './shared/loaders';

should be either

export { useCommonRouteAction, useCommonRouteLoader } from './shared/loaders';

or

 import { useCommonRouteAction, useCommonRouteLoader } from './shared/loaders';

export { useCommonRouteAction, useCommonRouteLoader };

// As mentioned, here we are re-exporting them
@maiieul maiieul added COMP: docs Improvements or additions to documentation STATUS-1: needs triage New issue which needs to be triaged labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP: docs Improvements or additions to documentation STATUS-1: needs triage New issue which needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant