'React hooks and updating a canvas (Reaflow)

I am using Reaflow to display some nodes which are coming from our robot tasks.

Reaflow has a canvas which display the nodes and edges. Btw when the nodes or edges updating, there is no change in the canvas.

Is there any way that I force update the canvas? maybe through the Ref or something else.

extra question if you are familiar with Reaflow: When I set center equal to false, nothing displays. any idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source