-
[FE] fix: pass search params from assistant sidebar navigate events to router (#6099)
发布于
2026-04-07 12:05:16 +00:00 The assistant sidebar bridge now includes an optional
searchfield on
navigate events. Previously query params were embedded in the path string,
but TanStack Router's navigate({ to }) ignores query params in the to
option — they must be passed via the search option.- Add
search?: Record<string, string>to SidebarEventMap navigate type - Destructure { path, search } in the bridge emit handler
- Pass search to router.navigate({ to, search }) in navigateRef
Companion to ollie-assist PR that updates the SITEMAP and NavigatePayload.
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件
- Add