跳到主要内容

Function.reconcileVisibleColumnState

@standhigher/polaris-data-table


@standhigher/polaris-data-table / reconcileVisibleColumnState

Function: reconcileVisibleColumnState()

reconcileVisibleColumnState<T>(__namedParameters): ReconciledVisibleColumnState

Makes a persisted visibility preference safe after a schema migration. A sort or filter for a hidden field is removed so it cannot be changed by controls that the user can no longer see. This function is pure and does not reset offset pagination because visibility itself does not change data.

Type Parameters

T

T extends object

Parameters

__namedParameters

ReconcileVisibleColumnStateOptions<T>

Returns

ReconciledVisibleColumnState