xunhuang / covid-19

MIT License
17 stars 16 forks source link

Problem with Navigating to new State #132

Closed tumbleshack closed 4 years ago

tumbleshack commented 4 years ago

Bug Fix Attempt

See #133 for bug. Merging a fixed version of this would close #133

Fix Attempted Here (not yet working): Manually fetch the geographies array from config.geoUrl, then pass this array into the Geographies component. Console logs (checked in to this PR) reveal that this solution did indeed pass the correct array to the geographies child, but now, nothing is rendering.

Been struggling with this for a while and feel stuck. Any help would be appreciated!

xunhuang commented 4 years ago

I "fixed" it here https://github.com/xunhuang/covid-19/commit/9a132d6cc27619931ef5cb77bac7551396d3836d

but I don't entirely know how it could get into that state, the data for covidRaw_ should have been loaded by then.

tumbleshack commented 4 years ago

Haha I thought the same thing. Really confused me what was going on. Nice fix!