@t8/react-store 1.0.14 → 1.0.16

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 +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -65,7 +65,9 @@ let AppContext = createContext({
65
65
 
66
66
  ```jsx
67
67
  let ItemCard = ({ id }) => {
68
+ // Definition of changes in the item
68
69
  let hasRelevantUpdates = useCallback((nextItems, prevItems) => {
70
+ // Assuming that items have a `revision` property
69
71
  return nextItems[id].revision !== prevItems[id].revision;
70
72
  }, [id]);
71
73
 
@@ -75,7 +77,7 @@ let ItemCard = ({ id }) => {
75
77
  );
76
78
 
77
79
  return (
78
- // content
80
+ // Content
79
81
  );
80
82
  };
81
83
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/react-store",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Straightforward and minimalist shared state management for React apps",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",