本页还没有译文
本页 11 段还没译成日本語,下面显示的是英文原文。hasVirtualProps
还没翻译译自英文(tanstack.com)本页 11 段都还没译
function hasVirtualProps(value): value is VirtualRowProps<string | number>;Defined in: packages/db/src/virtual-props.ts:194
Checks if a value has virtual properties attached. Legacy rows with the
original four properties still match; only rows published by this version
are guaranteed to carry $hasPendingWrites.
Parameters
value
unknown
The value to check
Returns
value is VirtualRowProps<string | number>
true if the value has virtual properties
Example
if (hasVirtualProps(row) && row.$hasPendingWrites !== undefined) {
console.log('Pending local writes:', row.$hasPendingWrites)
}AI 翻译查看英文原文