Skip to main content

skipFirstRun

还没翻译译自英文(tanstack.com)本页 9 段都还没译

function skipFirstRun(fn): () => void;

Defined in: utils.ts:350

Wraps a callback so that its first invocation is skipped.

Row-model onAfterUpdate hooks schedule auto-resets when their inputs change. The initial computation of a row model is not a change, so state resets must not fire for it — otherwise merely reading a row model on mount would wipe initial or controlled state.

Parameters

fn

() => void

Returns

() => void