react-graph-vis icon indicating copy to clipboard operation
react-graph-vis copied to clipboard

Problems with graphs in Router based applications

Open turnipsoft opened this issue 7 years ago • 3 comments

Thanks for a great component, however there's a clash when using this along with React Router, when you're using HashRouter, since this component renders a # in the end of the URL where the component is used, confusing the routing system.

Do you know any way to get rid of this # in the URL and why is it need at all, besides rendering graph components by params in the url

turnipsoft avatar Nov 23 '17 10:11 turnipsoft

Hi, this seems to be caused by vis.js as this component does not directly do that. I would happily take a PR about this. This might only be a matter of passing the right options to vis

crubier avatar Nov 23 '17 13:11 crubier

I thought it was likely visjs that did this. Gonna look into it, and do a PR if I solve it :-)

turnipsoft avatar Nov 23 '17 16:11 turnipsoft

was this issue ever fixed because i am getting an error when i try to host my application on heroku. the error states: Uncaught (in promise) TypeError: Cannot read property 'v4' of undefined

ghost avatar Mar 21 '20 22:03 ghost