Skip to content

Third Search topicDataFetch()

rothwell.andy@gmail.com edited this page Jul 26, 2024 · 1 revision

At the end of dataFetch, router/index.js should have what is available for a geocode, parcels, and condos.

It will then run topicDataFetch() as a callback. topicDataFetch() is a separate function, so that it can run independently of datafetch(), as the topic is changed.

Each topic (e.g. LI.vue), has a corresponding store (e.g. LIStore.js). When topicDataFetch() is run (either by datafetch() or by clicking a topic), it runs all of the filldata functions in the corresponding store.

For any address searched, the topic data that has been fetched is kept track of in MainStore.dataSourcesLoadedArray. If you click off a topic and then back onto it, the app will check that array, and it will not run the fillData functions for that topic again, since the topic name is in the array.

Clone this wiki locally