mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes: re-rendering of box component for trigger back resolvers
This commit is contained in:
parent
8958e4a727
commit
583460c609
1 changed files with 4 additions and 0 deletions
|
|
@ -4,10 +4,14 @@ import BoxUI from './BoxUI';
|
|||
import _ from 'lodash';
|
||||
|
||||
import { shouldUpdate } from './ControlledComponentToRender';
|
||||
import { useEditorStore } from '@/_stores/editorStore';
|
||||
|
||||
export const Box = React.memo((props) => {
|
||||
const { id, component, mode, customResolvables } = props;
|
||||
|
||||
useEditorStore((state) => state.componentsNeedsUpdateOnNextRender);
|
||||
//!Force a re-render of the component
|
||||
|
||||
return (
|
||||
<HydrateWithResolveReferences id={id} mode={mode} component={component} customResolvables={customResolvables}>
|
||||
<BoxUI {...props} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue