Might be related to #188
Seeing an unexpectedly empty 'links' layer (actually empty, you see the react empty comments) after implementing a simple 'zoom in' until the next interaction (ie a click or zoom will cause the links to show up).
Modified the 'zoom to fit' demo in a fork to serve as minimal repro
Here's a gif of the behavior:

I'm not sure if that's the reason but you're doing engine.setDiagramModel(model); in your event handler, and it is completely unnecessary
@JokerNN removing that call does fix the bug for me, thanks!
Didn't realize the engine would pick up changes to the mutable model automagically. Neato.
Hey @kmannislands glad it helped!
Didn't realize the engine would pick up changes to the mutable model automagically
repaintCanvas call.
Most helpful comment
@JokerNN removing that call does fix the bug for me, thanks!
Didn't realize the engine would pick up changes to the mutable model automagically. Neato.