@rebasepro/app 0.14.1 → 0.14.2-canary.gca521e9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/app",
3
3
  "type": "module",
4
- "version": "0.14.1",
4
+ "version": "0.14.2-canary.gca521e9",
5
5
  "description": "Rebase core — framework-agnostic runtime for data-driven admin panels",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -52,12 +52,12 @@
52
52
  "magic-string": "^0.30.0",
53
53
  "notistack": "^3.0.2",
54
54
  "react-i18next": "^17.0.11",
55
- "@rebasepro/admin-types": "0.14.1",
56
- "@rebasepro/types": "0.14.1",
57
- "@rebasepro/forms": "0.14.1",
58
- "@rebasepro/common": "0.14.1",
59
- "@rebasepro/utils": "0.14.1",
60
- "@rebasepro/ui": "0.14.1"
55
+ "@rebasepro/admin-types": "0.14.2-canary.gca521e9",
56
+ "@rebasepro/common": "0.14.2-canary.gca521e9",
57
+ "@rebasepro/forms": "0.14.2-canary.gca521e9",
58
+ "@rebasepro/ui": "0.14.2-canary.gca521e9",
59
+ "@rebasepro/types": "0.14.2-canary.gca521e9",
60
+ "@rebasepro/utils": "0.14.2-canary.gca521e9"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "react": ">=19.2.7",
@@ -1,4 +1,5 @@
1
- import React, { lazy, useMemo } from "react";
1
+ import React, { useMemo } from "react";
2
+ import { lazyChunk } from "@rebasepro/ui";
2
3
  import type { ComponentRef, LazyComponentRef } from "@rebasepro/types";
3
4
  import { isLazyComponentRef } from "@rebasepro/types";
4
5
 
@@ -70,7 +71,9 @@ function getOrCreateLazy<P>(
70
71
  if (cached) return cached as React.ComponentType<P>;
71
72
 
72
73
  // SAFETY: React.lazy returns LazyExoticComponent which is structurally compatible with ComponentType<P>
73
- const LazyComponent = lazy(loader) as React.ComponentType<P>;
74
+ // `lazyChunk`, not `lazy`: a custom view is a chunk like any other, and a
75
+ // tab left open across a deploy cannot fetch it either.
76
+ const LazyComponent = lazyChunk(loader) as React.ComponentType<P>;
74
77
  lazyCache.set(key, LazyComponent);
75
78
  return LazyComponent;
76
79
  }