Closed sandreae closed 4 years ago
Currently getting events list from infiniteList in state but as this is paginated then events will be missing. Wasn't sure where to get a full list of events though. @adzialocha where would the correct fetch route be?
All 'findAll' requests (/events
or /places
etc.) are paginated. One way I can think of now is to write a new method in the client which loops through all pages until it got them all and return this whole thing to the view. Another way could be to write a new endpoint in the server backend named /map
or something which returns a special response made for rendering these sort of maps. Both ways would be totally legit to me!
Just looked at this again and it was pretty simple to make the popup clickable..... not sure what I was doing before ;-p
Sorry, this commit history is a mess now... I'll have a go at starting a new branch with clean commits.
Currently getting events list from infiniteList in state but as this is paginated then events will be missing. Wasn't sure where to get a full list of events though. @adzialocha where would the correct fetch route be?