Skip to content

Build fixes#1034

Merged
streamich merged 4 commits into
masterfrom
build-fixes
May 29, 2026
Merged

Build fixes#1034
streamich merged 4 commits into
masterfrom
build-fixes

Conversation

@streamich

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 17:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies small build/runtime fixes in packages/ui, updating React external-store usage and improving nav path normalization.

Changes:

  • Adds getServerSnapshot arguments to useSyncExternalStore calls in rsync.ts.
  • Trims a trailing slash before converting navigation pathnames into step arrays.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/ui/src/utils/rsync.ts Updates ReactValue and ReactComputed hooks to pass a server snapshot getter.
packages/ui/src/context/services/NiceUiNavService.ts Normalizes one trailing slash before splitting pathnames into navigation steps.


const mapPath = (pathname: string) => {
if (pathname[0] === '/') pathname = pathname.slice(1);
if (pathname.length > 0 && pathname[pathname.length - 1] === '/') pathname = pathname.slice(0, -1);
@streamich streamich merged commit 0c94d42 into master May 29, 2026
9 checks passed
@streamich streamich deleted the build-fixes branch May 29, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants