crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with graphs in Router based applications

turnipsoft opened this issue · 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

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

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

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