I have a Tab Bar, and each tab contains a table. I created each table in tabs using this method with Containers and variables. However, I got a warning about duplicating the backend query.
Note that each tab on the tab bar contains a table that imports data from the same Firestore collection (query collection). Each table has a different sorting method according to a different field in the collection.
Description:
Firestore collection
Fields:
club | number of games played | number of wins | number of goals over 1.5 | number of goals over 2.5 | number of goals over 3.5
Table 1
club | number of games played | number of wins - sorting based on the number of wins field (decreasing)
Table 2
club | number of games played | number of goals over 2.5 - sorting based on field number of goals over 2.5 (decreasing)
I need advice/guidance on creating a single collection of queries for all tables in tab strips with a sort option for each table to avoid duplicate backend query.