devextreme-react
Version:
DevExtreme React UI and Visualization Components
31 lines (29 loc) • 1.04 kB
JavaScript
/*!
* devextreme-react
* Version: 25.2.3
* Build date: Fri Dec 12 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';
// eslint-disable-next-line @stylistic/max-len
export const RemovalLockerContext = createContext(undefined);
// eslint-disable-next-line @stylistic/max-len
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,
});