-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Use buildWarning
and wrapWithWarningOnCall
for deprecated methods and wrong usages
#4056
Conversation
…methods and wrong usages
These are the results for the performance tests:
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@@ -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>( |
There was a problem hiding this comment.
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
There was a problem hiding this 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
packages/grid/x-data-grid/src/hooks/features/rows/useGridParamsApi.ts
Outdated
Show resolved
Hide resolved
…sApi.ts Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
No description provided.