storybook-eol / react-treebeard

React Tree View Component. Data-Driven, Fast, Efficient and Customisable.
http://storybooks.github.io/react-treebeard
MIT License
1.69k stars 294 forks source link

Update data when new file is added #246

Closed nachozullo closed 4 years ago

nachozullo commented 4 years ago

First of all, thanks for the great library.

I am implementing a library of folders and files like Google Drive. My goal is to dinamically update the treebeard when the user add or eliminate a file or folder.

It is possible?

MattNot commented 4 years ago

i use something like: const [, reRender] = useState(false); . . . . const update = () => { /* things */ reRender(n => !n) }

to force the update