2 ms·
The examples only show simple values. What happens when mutating nested objects and arrays? Other frameworks usually struggle a lot with this. With workarounds
by Too 3y ago
The examples only show simple values. What happens when mutating nested objects and arrays?
Other frameworks usually struggle a lot with this. With workarounds like having to override equality functions in useMemo() or call .set after a mutation even if you pass in the same instance as before.