Files
twenty_crm/packages/twenty-front/src/modules/views/states/onViewFieldsChangeScopedState.ts
Charles Bochet 96264e264c Refactor recoil v4 (#3266)
* Refactor recoil v4

* Fix ci
2024-01-05 19:18:22 +01:00

11 lines
346 B
TypeScript

import { createStateScopeMap } from '@/ui/utilities/recoil-scope/utils/createStateScopeMap';
import { ViewField } from '../types/ViewField';
export const onViewFieldsChangeScopedState = createStateScopeMap<
((fields: ViewField[]) => void | Promise<void>) | undefined
>({
key: 'onViewFieldsChangeScopedState',
defaultValue: undefined,
});