react-component / react-component/tree

loadData method is calling twice when expand tree view

Open
#328 4 comments 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

You can reproduce the issue with the below example code.
https://github.com/react-component/tree/blob/master/examples/dynamic.jsx

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 with the reproduction in examples/dynamic.jsx and run the expand-tree scenario described in the issue. Trace where loadData is invoked during expansion and confirm the observed duplicate call. Done means the example triggers only one loadData call per expansion, with the reproduction behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.