MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / onStateChange

Function onStateChange

src/components/Search.tsx:70–72  ·  view source on GitHub ↗
({ state })

Source from the content-addressed store, hash-verified

68 placeholder: 'Find something...',
69 defaultActiveItemId: 0,
70 onStateChange({ state }) {
71 setAutocompleteState(state)
72 },
73 shouldPanelOpen({ state }) {
74 return state.query !== ''
75 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected