genui / openui / useSetDefaultValue
useSetDefaultValue()
Persists a component's default/initial value into form state once streaming finishes — but only if the user hasn't already set a value.
Call this inside any form component that has a defaultValue or
defaultChecked prop. It is a no-op during streaming so that LLM
prop changes don't fight with partial state.
Parameters
Returns
void
Defined in
@lynx-js/genui/openui/src/core/context.tsx:182