Hi,
I have an existing published app via App Gyver that I am rebuilding here. I just want to make sure I do things the most efficient way possible. My data is in Firebase so the switch will be simple, though I´m using a duplicate project to avoid affecting the live working solution.
My question: which of the following is best:
Read the firebase collections on each page. There are about 12 collections in total, though not all are needed on every page.
Read a collection once, then pass it as a page parameter to subsequent pages
Read a collection once then write it to individual App State variables
I am leaning towards #2, as it seems easy to implement and should be quicker that a load of reads off Firebase (plus less traffic and cost there). In appgyver I currently do #3 as option 2 isn´t available there.