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

[charts] Follow a single naming pattern in context #14028

Closed
JCQuintas opened this issue Jul 30, 2024 · 3 comments
Closed

[charts] Follow a single naming pattern in context #14028

JCQuintas opened this issue Jul 30, 2024 · 3 comments
Labels
breaking change component: charts This is the name of the generic UI component, not the React module! v8.x

Comments

@JCQuintas
Copy link
Member

JCQuintas commented Jul 30, 2024

Right now we follow both XxxContextProvider and XxxProvider for Context Providers in the codebase.

The goal is to follow a single pattern.

Search keywords:

@JCQuintas JCQuintas added breaking change component: charts This is the name of the generic UI component, not the React module! v8.x labels Jul 30, 2024
@flaviendelangle
Copy link
Member

flaviendelangle commented Jul 30, 2024

If you want to provide a smooth migration, could you do something like this?

- export const XxxContextProvider = React.creactContext({});
+ export const XxxProvider = React.createContext({});
+ /**
+   * @deprecated Use XxxProvider instead
+   */
+ export const XxxContextProvider = XxxProvider;

And then drop the deprecated one in v8

@alexfauquette
Copy link
Member

@JCQuintas Can we close this one, or do you still see something to do about it?

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: charts This is the name of the generic UI component, not the React module! v8.x
Projects
None yet
Development

No branches or pull requests

3 participants