Skip to content

[QUESTION] How to prevent rendering when that panel is not in view but in dock. #264

@lucifer012024

Description

@lucifer012024
Image

⚠️ Issue Description In the current implementation, the banned script is not visible in the image, but its associated data is still present in the DOM. Ideally, the script should only load when the component is mounted (e.g., on click), and it should be fully unmounted when the component is no longer in view (e.g., on leave).

✅ Expected Behavior

  • Load the script dynamically only when the component is activated.
  • Completely unmount and remove the script/data when the component is deactivated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions