Skip to content

Double update ? #512

@Liam-choung

Description

@Liam-choung

Description with steps to reproduce

Add a qDebug() inside the setInData implementation of a NodeDelegateModel.

Trigger a data update from an upstream node.

Observe the console outputting the log twice with a small time gap (~40ms).

Supporting files, videos and screenshots

Hi author,
I noticed an interesting behavior where every node's setInData function is being called twice during execution. This leads to redundant computations for each update cycle. Is this a deliberate design choice for UI/Data synchronization, or should I be handling idempotency manually within the nodes?

Qt Version

QT 5

Operating system

Windows10

Additional context

No response

Checklist

  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions