Skip to content

[RFC] Rename AppProvider export for Next.js and react-router integrations #4319

Description

@garryxiao

What's the problem?

I followed the example and found the example fails (keep refresh the whole page when click the nested links) when import the "AppProvider" with

import { AppProvider } from "@toolpad/core/AppProvider";

but works when use

import { AppProvider } from "@toolpad/core/react-router-dom"'

It's very confusing with the same name export but actual different. And not type 'Navigation' found of the 'core-vite' example line:

import { AppProvider, type Navigation } from '@toolpad/core/react-router-dom';

What are the requirements?

No response

What are our options?

Rename the export name and mention it in the documentation would be perfect.

Proposed solution

No response

Resources and benchmarks

No response

Search keywords:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions