simpler-state
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-rc.0
@@ -34,4 +34,9 @@ import { store } from './store'; | ||
entity.set = createSetter(entity); // Save reference to this entity for use with useEntityBoundary hook | ||
entity.set = createSetter(entity); | ||
entity.getInitialValue = function () { | ||
return entity._initialValue; | ||
}; // Save reference to this entity for use with useEntityBoundary hook | ||
store.push(entity); | ||
@@ -38,0 +43,0 @@ return entity; |
@@ -43,4 +43,9 @@ "use strict"; | ||
entity.set = createSetter(entity); // Save reference to this entity for use with useEntityBoundary hook | ||
entity.set = createSetter(entity); | ||
entity.getInitialValue = function () { | ||
return entity._initialValue; | ||
}; // Save reference to this entity for use with useEntityBoundary hook | ||
_store.store.push(entity); | ||
@@ -47,0 +52,0 @@ |
{ | ||
"name": "simpler-state", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-rc.0", | ||
"description": "The simplest app state management for React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# <img src="https://simpler-state.js.org/assets/simpler-state-logo.png" alt="SimpleR State" width="200"/> | ||
# <img src="https://simpler-state.js.org/assets/simpler-state-logo.png" alt="SimpleR State" width="240"/> | ||
@@ -8,3 +8,3 @@ [![npm](https://img.shields.io/npm/v/simpler-state)](https://www.npmjs.com/package/simpler-state) | ||
__SimpleR State__ is an ultra-lightweight library that provides the simplest state management for React. | ||
__SimpleR State__ is an ultra-lightweight library that provides the _simplest_ state management for React. | ||
@@ -11,0 +11,0 @@ - No complicated concepts or boilerplate code |
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
16549
283