Navigate to any state or county location (not ROW)
Using the search bar, search for a different State than you're currently in
Click on that State in the search bar
Error occurs
Suspected reason:
In MapCountyGeneric.js, the Geographies component takes in config.geoUrl as the geographies prop. This prop is the correct URL for the json corresponding to the newly navigated State.
However, a console log reveals that the array passed to the geographies child of the Geographies component is the array for the old state that the user navigated from. Seems that the component is not re-rendering?
Fix Attempted by #132 (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!
Bug Report
To repro:
Suspected reason: In
MapCountyGeneric.js
, theGeographies
component takes inconfig.geoUrl
as thegeographies
prop. This prop is the correct URL for the json corresponding to the newly navigated State.However, a console log reveals that the array passed to the
geographies
child of theGeographies
component is the array for the old state that the user navigated from. Seems that the component is not re-rendering?Fix Attempted by #132 (not yet working): Manually fetch the geographies array from
config.geoUrl
, then pass this array into theGeographies
component. Console logs (checked in to this PR) reveal that this solution did indeed pass the correct array to thegeographies
child, but now, nothing is rendering.Been struggling with this for a while and feel stuck. Any help would be appreciated!