Skip to content

Make FormComponent invisible in all children are invisible #12513

@freddyaboulton

Description

@freddyaboulton
  • I have searched to see if a similar issue already exists.
    We already do this on app start-up.

However, if during the session, all children are marked invisible, there will still be an empty form component rendered in the page. The logic for handling this is update_parent_visibility in the AppTree.

We can mark the form component as "hidden" when there is only a single child and its been made invisible. However to handle the case of multiple children, we need to fetch the latest visibility status from all the children. The problem is that the get_data callback only returns the props not the shared_props for some reason?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Additional context
Add any other context or screenshots about the feature request here.

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