Skip to content

Commit 4613373

Browse files
docs: add comment noting subgraph.nodes is non-reactive in ambient computed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 94e525e commit 4613373

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/composables/node/useAmbientSubgraphPreviews.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export function useAmbientSubgraphPreviews(
4040

4141
const { subgraph } = node
4242

43+
// `subgraph.nodes` (`LGraph._nodes`) is a plain, non-reactive array, so
44+
// interior node add/remove while collapsed isn't tracked here; the next
45+
// WS preview frame (nodeOutputs/nodePreviewImages change) self-heals it.
4346
return subgraph.nodes.flatMap((interiorNode): PromotedPreview[] => {
4447
// Nested subgraph hosts derive their own previews independently.
4548
if (interiorNode instanceof SubgraphNode) return []

0 commit comments

Comments
 (0)