Home / Function/ applyCellEdit() — supabase Function Reference

applyCellEdit() — supabase Function Reference

Architecture documentation for the applyCellEdit() function in queueOperationUtils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  2bcfeb05_2677_1569_194b_e5c28c769248["applyCellEdit()"]
  c32cfc02_8879_8621_1537_490ac2163083["queueCellEditWithOptimisticUpdate()"]
  c32cfc02_8879_8621_1537_490ac2163083 -->|calls| 2bcfeb05_2677_1569_194b_e5c28c769248
  16d57069_e009_dae3_11f3_3e1e07423636["reapplyOptimisticUpdates()"]
  16d57069_e009_dae3_11f3_3e1e07423636 -->|calls| 2bcfeb05_2677_1569_194b_e5c28c769248
  3db10eb3_7ae3_cf84_552c_f4a45ebab72c["rowMatchesIdentifiers()"]
  2bcfeb05_2677_1569_194b_e5c28c769248 -->|calls| 3db10eb3_7ae3_cf84_552c_f4a45ebab72c
  style 2bcfeb05_2677_1569_194b_e5c28c769248 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/grid/utils/queueOperationUtils.ts lines 64–77

export function applyCellEdit(
  rows: SupaRow[],
  columnName: string,
  rowIdentifiers: Dictionary<unknown>,
  newValue: unknown
): SupaRow[] {
  return rows.map((row) => {
    const rowMatches = rowMatchesIdentifiers(row, rowIdentifiers)
    if (rowMatches) {
      return { ...row, [columnName]: newValue }
    }
    return row
  })
}

Subdomains

Frequently Asked Questions

What does applyCellEdit() do?
applyCellEdit() is a function in the supabase codebase.
What does applyCellEdit() call?
applyCellEdit() calls 1 function(s): rowMatchesIdentifiers.
What calls applyCellEdit()?
applyCellEdit() is called by 2 function(s): queueCellEditWithOptimisticUpdate, reapplyOptimisticUpdates.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free