react-component / react-component/tree

Is there a way to show/hide a few nodes in the tree?

Open
#840 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
490
Avg merge
3d 17h
Merged PRs (30d)
5

Description

I wanted to implement filtering on tree nodes, is there a way to show/hide few nodes in the tree while they exist in DOM?
Note that tree data is loaded async by an API call and each node expansion also is an async operation which will API call to get data and render child nodes based on it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by tracing tree node rendering and the async API-based expansion flow described in the issue, then determine how filtering should behave for nodes that remain in the DOM. Done should include a defined show/hide behavior for asynchronously loaded nodes and verification that expansion still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.