Skip to content

Commit 8280ad4

Browse files
committed
test(app-shell): load the lazy object list at collection in the disabled-package deep-link suite
The plain "Object Not Found" is drawn inside the lazy ObjectView route element; its cold load now also carries plugin-view's entry and outgrew waitFor's budget. Loaded at module scope, as the lazy-boundary rule and the dashboard route suite's precedent do. Claude-Session: https://claude.ai/code/session_01ADHkmT5bCDp1MDcReXVCop Co-authored-by: Claude <noreply@anthropic.com>
1 parent aab8b31 commit 8280ad4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ vi.mock('@object-ui/react', async (importOriginal) => ({
9494
}));
9595

9696
import { AppContent } from '../AppContent';
97+
// The object list is a lazy route element (`AppContent`'s `ObjectView`), and
98+
// the plain "Object Not Found" of (b) is drawn inside it. Its cold load — the
99+
// list and `@object-ui/plugin-view`'s entry, which the shell no longer holds
100+
// eager (objectstack#33581) — is paid here, at collection, never inside a
101+
// clocked `waitFor`. `@objectstack/lint` is reached through it, so it is too.
102+
import '@objectstack/lint';
103+
import '../../views/ObjectView';
97104
import { MetadataProvider } from '../../providers/MetadataProvider';
98105

99106
const PKG = 'app.showcase';

0 commit comments

Comments
 (0)