redux-namespace icon indicating copy to clipboard operation
redux-namespace copied to clipboard

Separate default value from value

Open evanrs opened this issue 8 years ago • 0 comments

When assigning a value identical to the default value no update occurs because they are equal. This leads to a confusing bug where a value should be touched but is not.

ns.defaults('value', 1)
ns.assign('value', 1)
ns.touched('value')
// false

evanrs avatar Apr 20 '16 02:04 evanrs