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

[DataGrid] Use buildWarning and wrapWithWarningOnCall for deprecated methods and wrong usages #4056

Merged
merged 10 commits into from
Mar 7, 2022

Conversation

flaviendelangle
Copy link
Member

No description provided.

@flaviendelangle flaviendelangle added the component: data grid This is the name of the generic UI component, not the React module! label Feb 28, 2022
@flaviendelangle flaviendelangle self-assigned this Feb 28, 2022
@mui-bot
Copy link

mui-bot commented Feb 28, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 250.8 513.5 388.5 386.78 83.577
Sort 100k rows ms 459.4 1,023.2 733.9 759.66 181.108
Select 100k rows ms 152.7 390.6 207.8 245.06 81.532
Deselect 100k rows ms 111.3 244.7 202.4 179.32 52.469

Generated by 🚫 dangerJS against 2d0b85c

@flaviendelangle flaviendelangle marked this pull request as draft February 28, 2022 13:59
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 1, 2022
@github-actions
Copy link

github-actions bot commented Mar 1, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 1, 2022
@@ -18,8 +18,8 @@ export const buildWarning = (
};
};

export const wrapWithWarningOnCall = <Args extends any[], R extends any>(
method: (...args: Args) => R,
export const wrapWithWarningOnCall = <F extends Function>(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is here to support selectors which have a type of the form OutputSelector<S, R> | (state: S) => R

@flaviendelangle flaviendelangle marked this pull request as ready for review March 3, 2022 08:30
Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only corrected few typos

flaviendelangle and others added 2 commits March 3, 2022 10:37
…sApi.ts

Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
@alexfauquette alexfauquette mentioned this pull request Mar 3, 2022
@flaviendelangle flaviendelangle merged commit 2e7faad into mui:master Mar 7, 2022
@flaviendelangle flaviendelangle deleted the deprecation-warning branch March 7, 2022 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants