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

[Doc] Add Next.js app router install instructions #8965

Merged
merged 3 commits into from
Jun 2, 2023
Merged

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Jun 1, 2023

Problem

The Next.js tutorial only cover the Pages router. Next.js is putting the App router front and foremost.

Solution

Document the App router integration, too.

@@ -100,8 +102,3 @@ React-admin requires a valid dataProvider function to work.`);
</AuthContext.Provider>
);
};

CoreAdminContext.defaultProps = {
Copy link
Member Author

@fzaninotto fzaninotto Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next.js 13 comes with React 18, which logs a warning for defaultProps in development. I fixed a few of these warnings, but we should definitely do the rest in another PR.

@@ -119,10 +119,6 @@ export const CoreAdminRoutes = (props: CoreAdminRoutesProps) => {
);
};

CoreAdminRoutes.defaultProps = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was logging a warning AND was unused

@slax57 slax57 added this to the 4.11.1 milestone Jun 2, 2023
@slax57 slax57 merged commit eec01c3 into master Jun 2, 2023
@slax57 slax57 deleted the nextjs-app-router branch June 2, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants