Skip to content

Commit 35a2115

Browse files
committed
Re-calcluate custom nodes when data changes
1 parent 5876fd0 commit 35a2115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CollectionNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const CollectionNode: React.FC<CollectionNodeProps> = (props) => {
135135
showOnEdit,
136136
showOnView,
137137
showCollectionWrapper = true,
138-
} = useMemo(() => getCustomNode(customNodeDefinitions, nodeData), [])
138+
} = useMemo(() => getCustomNode(customNodeDefinitions, nodeData), [data])
139139

140140
const childrenEditing = areChildrenBeingEdited(pathString)
141141

0 commit comments

Comments
 (0)