Skip to content

On the Catalog List, if you have multiple catalogs the code rerenders each catalog after opening a new one #15

@grantcurell

Description

@grantcurell

This code is called:

  const componentsVersionQuery = (searchQuery) => {
    let qsParams = {};
    qsParams.search = searchQuery;
    qsParams.versionQuery = props.xmlFileName;
    return http
      .get(`/api/components?${qs.stringify(qsParams)}`)
      .then((res) => {
        setData(res.components);
      });
  };

for each catalog in the list of catalogs even if one or more of them are already open. It should only call that for the unopened leaf.

It is also called unnecessarily when closing the leaf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions