Skip to main content

getDefaultSortingState

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

function getDefaultSortingState(): SortingState;

Defined in: features/row-sorting/rowSortingFeature.utils.ts:26

Creates the default sorting state.

The feature default is an empty array, meaning no columns are sorted. Reset APIs use this value when defaultState is true.

Returns

SortingState

Example

const sorting = getDefaultSortingState()