Eldad Bercovici
Eldad Bercovici
I was able to reproduce on a simple CRA project: ``` npx create-react-app my-project --template typescript yarn add react-cmdk yarn start ``` Then add the code from the readme into...
Also, I'm adding these tags so people will find this issue easily: ``` Uncaught TypeError: Cannot read properties of undefined (reading 'Child') ```
Copying is by orders of magnitude cheaper than whatever sortFn does, which is up to the user anyhow.
And I'm not sure where you got the impression that resorting an almost sorted array issues less than n*log(n) calls. Try logging how many times sortFn is called when triggered...
Oh wow, you're right! When dealing with 1000s of items + using immer (RTK) this does get a lot slower. Not sure if because of the equality function reading "through"...
Check this out: https://stackoverflow.com/questions/70342852/cant-resolve-os-webpack-5