@simplestack/store 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -20,10 +20,6 @@ const documentStore = store({
20
20
  },
21
21
  });
22
22
 
23
- // Select parts of a store to listen to individually
24
- const titleStore = documentStore.select("title");
25
- const tagsStore = documentStore.select("meta").select("tags");
26
-
27
23
  function Document() {
28
24
  // Update your UI with the store's current state
29
25
  const { title, tags } = useStoreValue(documentStore);
@@ -34,6 +30,10 @@ function Document() {
34
30
  );
35
31
  }
36
32
 
33
+ // Or, select parts of a store to listen to individually
34
+ const titleStore = documentStore.select("title");
35
+ const tagsStore = documentStore.select("meta").select("tags");
36
+
37
37
  function Title() {
38
38
  // And scope updates with selected stores for fine-grained control
39
39
  const title = useStoreValue(titleStore);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplestack/store",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "A simple storage solution for React",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,6 +23,7 @@
23
23
  ],
24
24
  "author": "bholmesdev",
25
25
  "license": "MIT",
26
+ "homepage": "https://simple-stack.dev/store",
26
27
  "repository": {
27
28
  "type": "git",
28
29
  "url": "https://github.com/bholmesdev/simplestack-store.git"