@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.
- package/README.md +3 -1
- 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
|
-
//
|
|
80
|
+
// Content
|
|
79
81
|
);
|
|
80
82
|
};
|
|
81
83
|
```
|