From f8d9e280216706481ed52e261e7853848aea52ae Mon Sep 17 00:00:00 2001 From: David Matejka Date: Tue, 2 Jul 2024 16:35:36 +0200 Subject: [PATCH] fix(react-binding): reset tree root id context in DataBindingProvider --- .../src/coreComponents/DataBindingProvider.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/react-binding/src/coreComponents/DataBindingProvider.tsx b/packages/react-binding/src/coreComponents/DataBindingProvider.tsx index 00ebe7bc52..07375203fe 100644 --- a/packages/react-binding/src/coreComponents/DataBindingProvider.tsx +++ b/packages/react-binding/src/coreComponents/DataBindingProvider.tsx @@ -1,5 +1,6 @@ import { ComponentType, createElement, memo, ReactElement, ReactNode } from 'react' import { AccessorTree, AccessorTreeState, AccessorTreeStateOptions, useDataBinding } from '../accessorTree' +import { TreeRootIdProvider } from '../accessorPropagation' export type DataBindingProviderStateComponent = ( | { @@ -50,5 +51,11 @@ export const DataBindingProvider = memo(function DataBindingProvider{children} + return ( + + + {children} + + + ) }) as (props: DataBindingProviderProps) => ReactElement