UNPKG

devextreme-react

Version:

DevExtreme React UI and Visualization Components

30 lines (28 loc) 995 B
/*! * devextreme-react * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-react */ import { createContext, } from 'react'; export const RemovalLockerContext = createContext(undefined); // eslint-disable-next-line @typescript-eslint/no-extra-parens export const RestoreTreeContext = createContext(undefined); export const NestedOptionContext = createContext({ parentExpectedChildren: {}, parentFullName: '', onChildOptionsReady: () => undefined, onNamedTemplateReady: () => undefined, getOptionComponentKey: () => 0, treeUpdateToken: Symbol('initial tree update token'), parentType: 'component', }); export const TemplateRenderingContext = createContext({ isTemplateRendering: false, });