-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[charts] Split defaultizeAxis
function into two
#16745
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] Split defaultizeAxis
function into two
#16745
Conversation
In addition to splitting the function, I'm considering making the types more accurate (and maybe predictable as well?). Current StateIt seems we have two "defaultizing" processes. First, when we update the store in At the moment, Then, Proposal
@alexfauquette @JCQuintas what do you think? |
Deploy preview: https://deploy-preview-16745--material-ui-x.netlify.app/ |
CodSpeed Performance ReportMerging #16745 will not alter performanceComparing Summary
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
We would have to provide
Feels a bit unnecessary, the functions would be pretty much the same, dividing the types should be enough in this case.
We could start renaming |
To avoid breaking changes, you mean?
Yeah, we can. I think a name that makes it clear that the config still needs to be processed would be clearer, but we don't need to change it.
My reasoning for suggesting the splitting of What do you mean by dividing types? Wouldn't that mean we'd still need to keep overloads/use
Yeah, sounds good 👍 |
yeah
Depends on the type, but yes, in this case you are right that it would create an issue. |
8cc0fd3
to
c0e5c11
Compare
Split the
defaultizeAxis
function intodefaultizeXAxis
anddefaultizeYAxis
with the goal of simplifying types.