Skip to content

Conversation

@maxkorp
Copy link
Contributor

@maxkorp maxkorp commented Jul 24, 2025

useSearchParams was brought into the main layout in #190 but requires the component calling it to be inside a Suspense boundary. I moved it down into a "MaybeSidebar" that uses the hook and optionally renders the sidebar, and added it inside of a Suspense inside the main layout render.

@maxkorp maxkorp merged commit 8cb2e7b into main Jul 24, 2025
3 checks passed
@maxkorp maxkorp deleted the max/fix-suspense-build branch July 24, 2025 22:18
mattsp1290 pushed a commit to birbparty/ag-ui that referenced this pull request Sep 8, 2025
* Wrap sidebar in a suspense so useSearchParams doesn't blow up

* Cleanup unused code from main layout
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.

3 participants