@stoker-platform/web-app 0.5.207 → 0.5.208
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 +6 -0
- package/package.json +1 -1
- package/src/Cards.tsx +9 -6
- package/src/Images.tsx +8 -5
- package/src/List.tsx +8 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/Cards.tsx
CHANGED
|
@@ -1245,12 +1245,15 @@ export function Cards({
|
|
|
1245
1245
|
}, [backToStartKey])
|
|
1246
1246
|
|
|
1247
1247
|
useEffect(() => {
|
|
1248
|
-
const timer = setTimeout(
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1248
|
+
const timer = setTimeout(
|
|
1249
|
+
() => {
|
|
1250
|
+
if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
|
|
1251
|
+
const constraints = removeCardsStatusFilter(filters)
|
|
1252
|
+
backToStart(constraints as QueryConstraint[])
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
search ? 750 : 250,
|
|
1256
|
+
)
|
|
1254
1257
|
return () => clearTimeout(timer)
|
|
1255
1258
|
}, [search])
|
|
1256
1259
|
|
package/src/Images.tsx
CHANGED
|
@@ -514,11 +514,14 @@ export const Images = memo(
|
|
|
514
514
|
setCursor({})
|
|
515
515
|
infiniteLoaderRef.current?.resetloadMoreItemsCache()
|
|
516
516
|
}
|
|
517
|
-
const timer = setTimeout(
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
517
|
+
const timer = setTimeout(
|
|
518
|
+
() => {
|
|
519
|
+
if (fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
|
|
520
|
+
backToStart()
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
search ? 750 : 250,
|
|
524
|
+
)
|
|
522
525
|
return () => clearTimeout(timer)
|
|
523
526
|
}, [search])
|
|
524
527
|
|
package/src/List.tsx
CHANGED
|
@@ -867,11 +867,14 @@ export function List({
|
|
|
867
867
|
}, [])
|
|
868
868
|
|
|
869
869
|
useEffect(() => {
|
|
870
|
-
const timer = setTimeout(
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
870
|
+
const timer = setTimeout(
|
|
871
|
+
() => {
|
|
872
|
+
if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
|
|
873
|
+
backToStart()
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
search ? 750 : 250,
|
|
877
|
+
)
|
|
875
878
|
|
|
876
879
|
if (isInitialized && (isPreloadCacheEnabled || isServerReadOnly || isServerFullTextSearch)) {
|
|
877
880
|
setPageIndex(0)
|