+1
-1
| { | ||
| "name": "storem", | ||
| "version": "2.0.3", | ||
| "version": "2.0.4", | ||
| "description": "A reactive store for global state management in JS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+8
-4
@@ -66,5 +66,7 @@ # Storem | ||
| ### Creating the store | ||
| To start using Storem we should create a file to instantiate the store. We can create multiple stores or create a **single source of truth** (**recommended**): | ||
| To start using Storem we should create a file to instantiate the store and export it: | ||
| Example with **multiple** data sources: | ||
| <!-- To start using Storem we should create a file to instantiate the store. We can create multiple stores or create a **single source of truth** (**recommended**): --> | ||
| <!-- Example with **multiple** data sources: | ||
| ```javascript | ||
@@ -85,3 +87,3 @@ // store.js | ||
| Example with a **single** source of data (single source of truth) | ||
| Example with a **single** source of data (single source of truth) --> | ||
| ```javascript | ||
@@ -96,2 +98,4 @@ // store.js | ||
| Obs: Storem does not have support for multiple stores yet. | ||
| ## Configurations | ||
@@ -108,3 +112,3 @@ | ||
| - `reactOnDelete` | ||
| If true, will execute the callback events when data is deleted in the store. | ||
| If true, will execute the callback events when data is deleted from the store. | ||
@@ -111,0 +115,0 @@ Example: |
19241
0.9%309
1.31%