Skip to content

frontend-web-editor


Function: shouldApplyGraph()

shouldApplyGraph(prevSig, nextSig): boolean

Defined in: app/hooks/faultTree/graphApplyGuard.ts:35

Decide whether a new graph should be applied by comparing signatures.

Parameters

prevSig

string

Previously applied signature, if any.

nextSig

string

Newly computed signature.

Returns

boolean

True if signatures differ or previous is undefined; otherwise false.