@stoker-platform/web-app 0.5.150 → 0.5.151

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,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.151
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: process preloaded collection page number change immediately
8
+
3
9
  ## 0.5.150
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.150",
3
+ "version": "0.5.151",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/List.tsx CHANGED
@@ -812,11 +812,13 @@ export function List({
812
812
  const timer = setTimeout(() => {
813
813
  if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
814
814
  backToStart()
815
- } else if (isInitialized && (isPreloadCacheEnabled || isServerReadOnly)) {
816
- setPageIndex(0)
817
- setState(`collection-page-number-${labels.collection.toLowerCase()}`, "page", 1)
818
815
  }
819
816
  }, 750)
817
+
818
+ if (isInitialized && (isPreloadCacheEnabled || isServerReadOnly)) {
819
+ setPageIndex(0)
820
+ setState(`collection-page-number-${labels.collection.toLowerCase()}`, "page", 1)
821
+ }
820
822
  return () => clearTimeout(timer)
821
823
  }, [search])
822
824