CarbonDesigns/carbon-ui

Artboard frame cannot be restored from json

Opened this issue · 1 comments

Try to reload a project with an artboard frame.

There is a problem with the concept of materialization on load.
Artboard frame propsUpdated runs while page is restoring, it tries to find the artboard on a page and use the artboard's parent, which is not yet ready because the page is restoring...

I think we had similar problems with symbols as well.
Maybe it makes sense to make a two-pass load instead? First, initialize everything from json as-is, then go once again through elements and initialize cross-references.