Closed kosnkow closed 1 year ago
Keep in mind that the tree is using the default key initially. Also - refresh will not trigger a restore_state - consider calling it manually. You can check the events here: https://github.com/vakata/jstree/blob/master/src/jstree.state.js
I endup with sth like this (working version https://stackoverflow.com/questions/77025778/state-is-cleared-after-refreshing) but set timout to 100ms to be sure it is fired after you reset state after refresh. Because I saw jstree will always restore to empty state after refresh. @vakata
I am drawing different tree based on user clicked raw so I need to save many states
i am initializing tree as this
and after user select the row i bind data like this
different states work when switching between different rows until i refresh the page. Then when i cling some row the state is cleared.