From 20dc36436077799866121c5995f9a5b228d84381 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 5 Jan 2023 14:01:40 +0100 Subject: [PATCH] docs: update info on dynamic handles Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- docs/src/guide/node.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/guide/node.md b/docs/src/guide/node.md index 4f8791fd..74fde295 100644 --- a/docs/src/guide/node.md +++ b/docs/src/guide/node.md @@ -425,6 +425,14 @@ By adding this class you can also enable scrolling inside a node. ## Dynamic handle positions / Adding handles dynamically + +::: info +When using Vue Flow 1.x you don't need to call `updateNodeInternals` when adding handles dynamically. +Handles will try to be added to the node automatically when they are mounted. +If this does not work for you, for whatever reason, you can still follow the guide below and force Vue Flow to update +the node internals. +::: + When working with dynamic handle positions or adding handles dynamically, you need to use the [`updateNodeInternals`](/typedocs/types/UpdateNodeInternals) method.