uikit/REMOTE_PERSISTENCE_1.3.3.md
Mohamadzadeh 46e32ff4db
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 49s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 9s
uikit-v1.3.3-remote-persistence-complete
2026-10-31 11:17:20 +03:30

1.8 KiB

UI Kit 1.3.3 — persistent remote header and sidebar

Based on the complete UI Kit 1.3.2 release. Only remote AppHeader and AppSidebar behavior changes; package version bumped.

AppSidebar

  • For updates that only change the active state and/or click callbacks, update data-active and aria-current in place.
  • Keep the existing DOM and React icon roots for these updates; onClick and onExit dispatch to the latest functions.
  • A structural change (item order, label, icon, disabled/href, visibility or exit configuration) can still cause a full re-render.

AppHeader

  • Ignore identical property updates, preserving the existing image elements and the logo's optimization lifecycle.
  • Different header props can still cause a re-render; a stable React/layout shell is necessary to keep props stable across page changes.

Deployment

  1. Publish the new UI Kit package as v1.3.3 (Git tag after commit).
  2. Deploy both dist/remote/AppHeader.js and dist/remote/AppSidebar.js to the Remote UI host using the existing URL paths (/AppHeader.js, /AppSidebar.js). The package upgrade alone does not replace remotely served files.
  3. In Next.js Pages Router destination apps, mount one shared <AppShell> in pages/_app.js, not inside each route page, and remove the per-page <AppShell> wrappers. AppShell must remain at the same React tree position during client-side navigation.
  4. Verify the Remote JS caching/CDN invalidation and hard-refresh clients after deployment. Do not cache the old remote script indefinitely.
  5. Inspect Network and DOM in DevTools; a single page refresh may fetch the assets once, but remount prevention is about retaining DOM and React roots, not a guarantee that no render or network request ever occurs for other reasons.

No changes to BiProvider, Keycloak, API, Permission, Vite, SWR, BiImage, default theme or public exports.