@stoker-platform/web-app 0.4.2 → 0.4.4
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/CHANGELOG.md +16 -0
- package/package.json +3 -3
- package/src/Record.tsx +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: only fire subscription error callback when mounted
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @stoker-platform/node-client@0.4.2
|
|
10
|
+
- @stoker-platform/web-client@0.4.4
|
|
11
|
+
|
|
12
|
+
## 0.4.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @stoker-platform/web-client@0.4.3
|
|
18
|
+
|
|
3
19
|
## 0.4.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/web-app",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@react-google-maps/api": "^2.20.7",
|
|
53
53
|
"@sentry/react": "^10.29.0",
|
|
54
|
-
"@stoker-platform/node-client": "0.4.
|
|
54
|
+
"@stoker-platform/node-client": "0.4.2",
|
|
55
55
|
"@stoker-platform/utils": "0.4.1",
|
|
56
|
-
"@stoker-platform/web-client": "0.4.
|
|
56
|
+
"@stoker-platform/web-client": "0.4.4",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
58
|
"@types/react": "18.3.13",
|
|
59
59
|
"@types/react-dom": "18.3.1",
|
package/src/Record.tsx
CHANGED
|
@@ -91,6 +91,7 @@ export const Record = ({ collection }: { collection: CollectionSchema }) => {
|
|
|
91
91
|
|
|
92
92
|
useEffect(() => {
|
|
93
93
|
let unsubscribe: (() => void) | undefined = undefined
|
|
94
|
+
let isMounted = true
|
|
94
95
|
const initialize = async () => {
|
|
95
96
|
const collectionAdminPath: ["collections", StokerCollection, "admin"] = [
|
|
96
97
|
"collections",
|
|
@@ -132,7 +133,9 @@ export const Record = ({ collection }: { collection: CollectionSchema }) => {
|
|
|
132
133
|
isLoading.current = false
|
|
133
134
|
},
|
|
134
135
|
(error) => {
|
|
135
|
-
|
|
136
|
+
if (isMounted) {
|
|
137
|
+
console.error(error)
|
|
138
|
+
}
|
|
136
139
|
},
|
|
137
140
|
{
|
|
138
141
|
noEmbeddingFields: true,
|
|
@@ -162,6 +165,7 @@ export const Record = ({ collection }: { collection: CollectionSchema }) => {
|
|
|
162
165
|
}
|
|
163
166
|
initialize()
|
|
164
167
|
return () => {
|
|
168
|
+
isMounted = false
|
|
165
169
|
unsubscribe?.()
|
|
166
170
|
}
|
|
167
171
|
}, [id])
|