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

Open
JCQuintas opened this issue Jul 30, 2024 · 1 comment
Open

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

JCQuintas opened this issue Jul 30, 2024 · 1 comment
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

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

2 participants