I have a custom widget that loads records within select distance from the map center. When I move the map, clicking a button will reload new records-again-based on the new map center.
I'm attempting to grab the loaded records as a document list in a page state, but keep running into issue. I understand there's the app state method, but unfortunately, it doesn't support Document list, just Document Reference. I need access to the full document in order to access select fields within the collection type.
I understand there's also the Data Types direction, but I feel like that's not only cumbersome to rebuild the schema, but also, will duplicate the data. I could be wrong.
Anywho, how can I best utilize the page state. It's a state in the "home" page that I'm attempting to update.
name: listOfPlaces
Type: Document
Is List: checked
Collection Type: Places
Appreciate guidance.