@newstudios/hook
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -26,4 +26,9 @@ "use strict"; | ||
set: newList => { | ||
list.current = (0, _utils.resolveState)(newList, list.current); | ||
update(); | ||
const newArr = (0, _utils.resolveState)(newList, list.current); | ||
if (list.current !== newArr) { | ||
list.current = newArr; | ||
update(); | ||
} | ||
return a; | ||
@@ -30,0 +35,0 @@ }, |
{ | ||
"name": "@newstudios/hook", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "common hooks for react", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
58557
1385