@stoker-platform/web-app 0.4.3 → 0.5.1

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 CHANGED
@@ -1,25 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
- ## 0.4.3
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies
8
- - @stoker-platform/web-client@0.4.3
9
-
10
- ## 0.4.2
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies
15
- - @stoker-platform/web-client@0.4.2
16
-
17
- ## 0.4.1
3
+ ## 0.5.1
18
4
 
19
5
  ### Patch Changes
20
6
 
21
7
  - Reset changesets
22
8
  - Updated dependencies
23
- - @stoker-platform/node-client@0.4.1
24
- - @stoker-platform/web-client@0.4.1
25
- - @stoker-platform/utils@0.4.1
9
+ - @stoker-platform/node-client@0.5.1
10
+ - @stoker-platform/web-client@0.5.1
11
+ - @stoker-platform/utils@0.5.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
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.1",
55
- "@stoker-platform/utils": "0.4.1",
56
- "@stoker-platform/web-client": "0.4.3",
54
+ "@stoker-platform/node-client": "0.5.1",
55
+ "@stoker-platform/utils": "0.5.1",
56
+ "@stoker-platform/web-client": "0.5.1",
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
- console.error(error)
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])