Comments (1)
Hi!
Yes, the render method for items are retriggered on tree state changes, since every item is provided with information about the tree state in their props, so tree items wouldn't be able to display data they otherwise can.
You can memoize the item render methods directly with only those props that you use, this will ensure that items are not rerendered unless they need to be: https://codesandbox.io/s/react-complex-tree-playground-memo-demo-37mngx
from react-complex-tree.
Related Issues (20)
- DROP not working when open a new folder. HOT 3
- Customize Cursor when Dragging HOT 1
- Example for drag and drog with controlled tree? HOT 1
- Request for `context.stopRenamingItem(item.index)` as counter for existing startRenamingItem function HOT 2
- Cannot read properties of undefined (reading 'index') HOT 3
- tree update HOT 1
- Drag custom files to the tree HOT 2
- Text selection on title don't work HOT 3
- Missing `activeTreeId` in `TreeEnvironmentRef<T,C>` type HOT 1
- Set state on unmounted component HOT 8
- Tree is missing `multiselect` prop HOT 2
- I want to print node contents. HOT 1
- Unable to update tree data using custom Data Provider HOT 3
- Collision with react-dnd HOT 2
- Search whole tree HOT 5
- Animation when node is opened and closed HOT 3
- customize keyboard bindings HOT 1
- Custom search HOT 1
- Expand tree element without selecting it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-complex-tree.