@isograph/react 0.0.0-main-25cc6d5a → 0.0.0-main-0a7c1aef
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.
@@ -9,6 +9,9 @@ function useRerenderWhenEncounteredRecordChanges(environment, encounteredRecords
|
|
9
9
|
return (0, cache_1.subscribe)(environment, encounteredRecords, () => {
|
10
10
|
return setState({});
|
11
11
|
});
|
12
|
+
// TODO this is probably buggy — we should re-evaluate the effect when
|
13
|
+
// encounteredRecords changes. However, it is not a stable object, so...
|
14
|
+
// how?
|
12
15
|
}, []);
|
13
16
|
}
|
14
17
|
exports.useRerenderWhenEncounteredRecordChanges = useRerenderWhenEncounteredRecordChanges;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@isograph/react",
|
3
|
-
"version": "0.0.0-main-
|
3
|
+
"version": "0.0.0-main-0a7c1aef",
|
4
4
|
"description": "Use Isograph with React",
|
5
5
|
"homepage": "https://isograph.dev",
|
6
6
|
"main": "dist/index.js",
|
@@ -16,8 +16,8 @@
|
|
16
16
|
"prepack": "yarn run test && yarn run compile"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@isograph/disposable-types": "0.0.0-main-
|
20
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
19
|
+
"@isograph/disposable-types": "0.0.0-main-0a7c1aef",
|
20
|
+
"@isograph/react-disposable-state": "0.0.0-main-0a7c1aef",
|
21
21
|
"react": "^18.2.0"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
@@ -11,5 +11,8 @@ export function useRerenderWhenEncounteredRecordChanges(
|
|
11
11
|
return subscribe(environment, encounteredRecords, () => {
|
12
12
|
return setState({});
|
13
13
|
});
|
14
|
+
// TODO this is probably buggy — we should re-evaluate the effect when
|
15
|
+
// encounteredRecords changes. However, it is not a stable object, so...
|
16
|
+
// how?
|
14
17
|
}, []);
|
15
18
|
}
|