@hookstate/core
Advanced tools
Comparing version 4.0.0-rc.2 to 4.0.0-rc.3
@@ -732,2 +732,7 @@ import React from 'react'; | ||
} | ||
if (newValue !== Object(newValue) && newValue === this.getUntracked(true)) { | ||
// this is primitive value and has not changed | ||
// so skip this set call as it does not make an effect | ||
return []; | ||
} | ||
return [this.store.set(this.path, newValue, mergeValue)]; | ||
@@ -734,0 +739,0 @@ }; |
@@ -740,2 +740,7 @@ 'use strict'; | ||
} | ||
if (newValue !== Object(newValue) && newValue === this.getUntracked(true)) { | ||
// this is primitive value and has not changed | ||
// so skip this set call as it does not make an effect | ||
return []; | ||
} | ||
return [this.store.set(this.path, newValue, mergeValue)]; | ||
@@ -742,0 +747,0 @@ }; |
{ | ||
"name": "@hookstate/core", | ||
"version": "4.0.0-rc.2", | ||
"version": "4.0.0-rc.3", | ||
"description": "The flexible, fast and extendable state management for React that is based on hooks and state usage tracking.", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"clean": "rimraf dist", | ||
"test": "cross-env CI=1 jest --env=jsdom", | ||
"test": "cross-env CI=1 jest --verbose --env=jsdom", | ||
"test:w": "jest --env=jsdom --watch", | ||
@@ -28,0 +28,0 @@ "release": "npm publish", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
394157
3128