Extra check that always true
Guria opened this issue · 1 comments
Guria commented
from the sources:
const newState = JSON.parse(newValue);
if (k === key && state !== newState)
state !== newState
would always resolve to true since newState is just a newly created object returned from JSON parse
nbouscal commented
If the state is a number or string this check is meaningful.