falling-fruit / falling-fruit-web

Mobile-friendly website for Falling Fruit
https://beta.fallingfruit.org
GNU General Public License v3.0
30 stars 7 forks source link

Mobile list is empty if loaded directly from URL #347

Open ezwelty opened 1 year ago

ezwelty commented 1 year ago

Going to the list directly from a URL results in an empty list. For example: /list/@40.0405402577959,-105.2632395613161,21z. Locations are not loaded. Only when switching to map view are the locations loaded.

image

wbazant commented 1 month ago

This happens because the view object is null when src/redux/selectParams.js is called after loading the empty page, and the error is silenced because src/redux/listSlice.js there is no handler for fetchListLocations.rejected. A very nice bug!