Function traceWrites

    • Run fn and collect the source cells written during it (back-writes included, since a view write commits through its sources' _writeSource).

      Type Parameters

      • T

      Parameters

      • fn: () => T

      Returns { result: T; writes: Cell<unknown>[] }