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

[core] Drop context folder #2501

Closed
wants to merge 4 commits into from

Conversation

flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Aug 30, 2021

@mui-org/x the OutsideColumnsPanel story is not working in next because it tries to use the preference panel outside of the Grid, but the panel uses useGridRootProps which is not available.

To be able to access apiRef, it instanciates GridApiContext.Provider manually, which I would like to avoid.
But anyway, for rootProps I don't see how we could correctly handle it.
It we just export the context, users would not have the (DataGridProps | DataGridProProps) => GridComponentProps processing so the rootProps would not be complete.

Do we really want to allow people to instanciate our components outside of the Grid context.
It seems to be a lot of trouble and very easy to break in the future.

@flaviendelangle flaviendelangle added the core Infrastructure work going on behind the scenes label Aug 30, 2021
@flaviendelangle flaviendelangle self-assigned this Aug 30, 2021
@flaviendelangle flaviendelangle changed the title Drop context folder [core] Drop context folder Aug 30, 2021
@flaviendelangle flaviendelangle added the on hold There is a blocker, we need to wait label Sep 3, 2021
@oliviertassinari
Copy link
Member

I guess we have moved the discussion to #2522.

@m4theushw
Copy link
Member

Could we close this one or do you want to push it forward?

@flaviendelangle
Copy link
Member Author

@m4theushw I'll close it

@flaviendelangle flaviendelangle deleted the drop-context-folder branch October 9, 2021 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes on hold There is a blocker, we need to wait
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants