Commit 866444a
committed
fix(ui): route VersionsPill through client exports bundle
The relocated `tabs/index.tsx` server module was importing the
`'use client'` VersionsPill via a relative path. In production bundles
that splits the DocumentInfo context across server and client chunks,
so useDocumentInfo() returns the default empty object, versionCount is
undefined, and the pill renders null — causing version-count e2e tests
to time out waiting for `.pill-version-count` to appear.
Routes this server→client edge through `@payloadcms/ui`'s
`exports/client` barrel (matching the pattern from
fd020ea) so the bundler treats the client module as the same
instance the DocumentInfoProvider populates.1 parent be7a642 commit 866444a
2 files changed
Lines changed: 3 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
0 commit comments