Skip to content

@sqlrooms/ai-core / ChatSuggestionsStateBoundary

Variable: ChatSuggestionsStateBoundary

const ChatSuggestionsStateBoundary: FC<{ }> = suggestionsContext.StateBoundary

Wraps children so that usePromptSuggestions always has state to read, mirroring ChatComposerStateBoundary. If an ancestor already published suggestions state, children render unchanged; otherwise a session-mode provider (and, since it depends on composer state, a composer boundary above it) is rendered around them.