serratus-bio / open-virome

monorepo for data explorer UI and APIs
http://openvirome.com/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Prevent unnecessary network renders, fix initial layout bug #59

Closed lukepereira closed 3 months ago

lukepereira commented 3 months ago

For some reason the cytoscape network is re-rendering on changes to state in the parent component despite having proper memoization set up.

Since cytoscape layout uses randomization, this makes for poor user experience when clicking on nodes/edges

lukepereira commented 3 months ago

Also, the initial layout sometimes doesn't seem to work for large networks