API Reference / @evolu/common / Evolu/Internal / makePatches

Function: makePatches()

function makePatches(previousRows, nextRows): readonly Patch[];

Defined in: packages/common/src/Evolu/Diff.ts:48

We detect only changes in the whole result and in-place edits. In the future, we will add more heuristics. We will probably not implement the Myers diff algorithm because it's faster to rerender all than to compute many detailed patches. We will only implement logic a developer would implement manually, if necessary.

Parameters

ParameterType
previousRows| undefined | readonly Row[]
nextRowsreadonly Row[]

Returns

readonly Patch[]

Was this page helpful?