5ba68e997d
* create scopes * fix import bug * add useView hook * wip * wip * currentViewId is now retrieved via useView * working on sorts with useView * refactor in progress * refactor in progress * refactor in progress * refactor in progress * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix code * fix code * wip * push * Fix issue dependencies * Fix resize --------- Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
12 lines
466 B
TypeScript
12 lines
466 B
TypeScript
import { ColumnDefinition } from '@/ui/data/data-table/types/ColumnDefinition';
|
|
import { FieldMetadata } from '@/ui/data/field/types/FieldMetadata';
|
|
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
|
|
|
|
export const onViewFieldsChangeScopedState = createScopedState<
|
|
| ((fields: ColumnDefinition<FieldMetadata>[]) => void | Promise<void>)
|
|
| undefined
|
|
>({
|
|
key: 'onViewFieldsChangeScopedState',
|
|
defaultValue: undefined,
|
|
});
|