MCPcopy Create free account
hub / github.com/bytebase/bytebase / updateExpr

Function updateExpr

frontend/src/react/components/ExprEditor.tsx:94–101  ·  view source on GitHub ↗
(
  root: ConditionGroupExpr,
  mutate: (clone: ConditionGroupExpr) => void
)

Source from the content-addressed store, hash-verified

92
93// Clone root, apply a mutation to the clone, return the clone.
94function updateExpr(
95 root: ConditionGroupExpr,
96 mutate: (clone: ConditionGroupExpr) => void
97): ConditionGroupExpr {
98 const clone = structuredClone(root);
99 mutate(clone);
100 return clone;
101}
102
103// ============================================================
104// Context

Callers 1

useImmutableUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected