You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error: react-dom.development.js:11102 Uncaught TypeError: Cannot read properties of undefined (reading '0') at F.oe.linkDistance (hooks.ts:43:1) at F (hooks.ts:66:1)
The text was updated successfully, but these errors were encountered:
You don't need to use the useNetwork hook in order to use ResponsiveNetwork, it's already used internally, so you should just pass the nodes and links as is to the data property, the way it's done for https://nivo.rocks/network/.
useNetwork can be used if you want to completely render things by yourself, but yes, there's no documentation about it, so you'll need to inspect what the hook returns, and you'd probably want to have a look at the default implementation.
I've made the most basic useNetwork implementation and I get an error.
There is no documentation or example for using
useNetwork
This is my code:
This is the error:
react-dom.development.js:11102 Uncaught TypeError: Cannot read properties of undefined (reading '0') at F.oe.linkDistance (hooks.ts:43:1) at F (hooks.ts:66:1)
The text was updated successfully, but these errors were encountered: