projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.51k stars 1.17k forks source link

Fix LabelModel deserialization and react incompatibility with react-dom which refutes Storybook to run #860

Closed vadimshvetsov closed 3 years ago

vadimshvetsov commented 3 years ago

Checklist

What?

  1. LabelModel can't get deserialized because of #497 issue.
  2. Storybook can't be run from last master commit after building all packages.
Screenshot 2021-07-06 at 16 47 25

Why?

  1. The problem is that this.engine.getCanvas() return undefined on first render.
  2. Because react 16.8 can't work with react-dom 17.

How?

  1. With adding quotation mark to canvas which doesn't fall Closes #497
  2. With update react and react dependant deps to successfully run storybook Closes #858

Feel good image:

image