react-component / react-component/tree

Support only load select node-data

Open
#854 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

Can support only load user-select node-data.

my tree

(<Tree
            // defaultExpandedKeys={['0-0']}
            loadData={async (treeNode)=> this.loadData(treeNode)}
            treeData={this.state.treeData}
        />);

I must update whole this.state.treeData when trigger loadData,
loop list of treeData will cost long time,

so i want a mode that can only load need-load-data and get whole data by something such as tree-ref,
I don't find anything about this with doc.

Is supporting ?

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

Start at the Tree component's loadData and treeData handling, then examine how a tree ref could expose the loaded data. Clarify the expected API for loading only the selected node and define done as avoiding a full treeData update while still making the complete tree data available.

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.