Skip to main content

getFunctionNameInfo

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

function getFunctionNameInfo(staticFnName, splitBy?): object;

Defined in: utils.ts:524

Assumes that a function name is in the format of parentName_fnKey and returns the fnKey and fnName in the format of parentName.fnKey.

Splits on the first separator only, so an internal API name such as table__expandRows has the fnKey _expandRows.

Parameters

staticFnName

string

splitBy?

"." | "_"

Returns

object

fnKey

fnKey: string;

fnName

fnName: string;

parentName

parentName: string;