Usage of FlexLayout with external Model control #523
brownstein
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project that uses Redux to store and update JSON layouts leveraging the
Model.toJsonandModel.fromJsonfunctions. In early versions of FlexLayout, components would persist between Model updates, but when I jumped to9.0.0, I noticed that this was no longer working. For9.0.0, I shimmed over this issue by manually setting themovableElementof the newTabNodes after re-hyrading from JSON to match the previous model'smovableElement(e.g. mounted sub-component).When I went to upgrade to
9.0.1to resolve issues related to drag-and-drop, I noticed that this API onTabNodehad become private, blocking my upgrade.I've put together a PR to allow
fromJsonto hydrate using a previousModelinstance at #522 , but I'd like to start a wider discussion about supporting this use case and see if we can come up with an even better solution.Beta Was this translation helpful? Give feedback.
All reactions