itwinjs-core icon indicating copy to clipboard operation
itwinjs-core copied to clipboard

Support suspending/restoring presentation tree state

Open grigasp opened this issue 3 years ago • 1 comments

In some cases there's a need to suspend tree state before a component unmounts and restore it afterwards when a component mounts. The presentation-driven trees currently don't support this. It seems the following things need to be added:

  • [ ] Allow constructing MutableTreeModel out of an immutable TreeModel.
  • [ ] Allow users to provide their own TreeModelSource to usePresentationTreeNodeLoader hook.

grigasp avatar Jun 15 '22 13:06 grigasp

Related PR: https://github.com/iTwin/itwinjs-core/pull/4030

roluk avatar Aug 05 '22 13:08 roluk