MCPcopy
hub / github.com/marimo-team/marimo / onSubmit

Function onSubmit

frontend/src/components/editor/package-alert.tsx:394–405  ·  view source on GitHub ↗
(values: UserConfig)

Source from the content-addressed store, hash-verified

392 });
393
394 const onSubmit = async (values: UserConfig) => {
395 // Only send values that were actually changed to avoid
396 // overwriting backend values the form doesn't manage
397 const dirtyValues = getDirtyValues(values, form.formState.dirtyFields);
398 if (Object.keys(dirtyValues).length === 0) {
399 return; // Nothing changed
400 }
401 await saveUserConfig({ config: dirtyValues }).then(() => {
402 // Update local state with form values
403 setConfig((prev) => ({ ...prev, ...values }));
404 });
405 };
406
407 return (
408 <Form {...form}>

Callers 6

DebuggerInputFunction · 0.50
DebuggerControlsFunction · 0.50
chat-panel.tsxFile · 0.50
handleSubmitFunction · 0.50
StdInputFunction · 0.50
TransformPanelFunction · 0.50

Calls 2

getDirtyValuesFunction · 0.90
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…