@kentcdodds explains a reset callback has pros over resetting with a React key update:
- lighter, no unmount/remount
- smoother, can preserve animated state transitions
Lighthouse can measure lab perf for nav & user interactions
β‘οΈ objectively measure the whole experience, not just initial page load!
β‘οΈ web.dev/lighthouse-useβ¦
"Mutability has great positives
But thinking immutability is bad may just mean some past patterns were problematic, and not that the entirety of immutable data is bad"
I can agree, but maybe the pain is only temporary?
Maybe we shouldn't throw the immutability model because of short-term difficulties, and the platform should evolve to support better the immutable UI model