storybook-eol/react-treebeard

Update data when new file is added

nachozullo opened this issue · 1 comments

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?

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

to force the update