Rom Grk
Rom Grk
Improve `sx` performance by removing allocations. [Example user code](https://gist.github.com/romgrk/03bd148e5e93e5a166b3f195e86562fd): ``` Before: 23.4ms +-1.6 After: 15.2ms +-1.1 n=100 ``` We get roughly **35% less rendering time** for the example above which...
This util is used to compare props. Props are more likely (I'm guessing) to have the same shape from one render to the next. Therefore, it's better to check first...
### Description Add note on the cancelability of the `wheel` event. ### Motivation Current description is inaccurate for chromium. ### Additional details See https://issues.chromium.org/issues/40595672#comment5
Follow-up of https://github.com/mui/mui-x/issues/17427
Avoid allocating a new entries array on each call.
Test case: https://gist.github.com/romgrk/023d376d54f38812c2ba3f91b96eace0 The case above was tested in joy-ui docs because there is [fine-tuning to do](https://mui-org.slack.com/archives/C089BDL6XST/p1747244615887569) to ensure babel/swc/next don't add up noise to the benchmark and I already...
Various small changes to remove useless or unefficient code.
This new method will allow me to get rid of [`throttle.ts`](https://github.com/mui/mui-x/blob/1d8854d9902cbabf034ddb469793c563918dd344/packages/x-internals/src/throttle/throttle.ts) once we migrate to BUI utils in X.
We use classes to organize our code, and the eslint rule `react-hooks/rules-of-hooks` always warns about hooks not being usable inside class components, regardless if the class is a component. ###...