Skip to content

Commit 7d6bd81

Browse files
lint
1 parent dd8a372 commit 7d6bd81

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/devextreme-react/src/core/component-base.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { elementPropNames, getClassName } from './widget-config';
2626
import { TemplateManager } from './template-manager';
2727
import { ComponentProps } from './component';
2828
import { ElementType, IOptionElement } from './configuration/react/element';
29-
import { IConfigNode } from './configuration/config-node';
3029

3130
import {
3231
NestedOptionContext,
@@ -96,8 +95,6 @@ const ComponentBase = forwardRef<ComponentBaseRef, any>(
9695

9796
const prevPropsRef = useRef<P & ComponentBaseProps>();
9897

99-
let widgetConfig: IConfigNode;
100-
10198
const templateContainer = useMemo(() => document.createElement('div'), []);
10299

103100
const elementDescriptor: IOptionElement = {
@@ -113,16 +110,13 @@ const ComponentBase = forwardRef<ComponentBaseRef, any>(
113110
props,
114111
};
115112

116-
const options = useOptionScanning(
113+
const [widgetConfig, context] = useOptionScanning(
117114
elementDescriptor,
118115
props.children,
119116
templateContainer,
120117
Symbol('initial update token'),
121118
);
122119

123-
[widgetConfig] = options;
124-
const [, context] = options;
125-
126120
const restoreTree = useCallback(() => {
127121
if (childElementsDetached.current && childNodes.current?.length && element.current) {
128122
element.current.append(...childNodes.current);

0 commit comments

Comments
 (0)