Sponsors don't appear when navigating backwards
Browse to https://www.thatconference.com/
- Browse to https://www.thatconference.com/
- Then head to THAT Online
- Hit back button. and sponsor section is empty.
It appears the query for sponsors isn't running or the apollo cache is empty.
@csell5 I did some digging on this. I don't have answers, but I have more insight for you. Graph is not my specialty.
It should be noted this ONLY happens with That Online, not WI21, TX21, or any other page I tried. Seems to be tied to RootLayout possibly.
Based on Events.js and the Query defined in there, I set some breakpoints where you go to get the Pioneer Partners to display.
- On initial Load, Cuna Mutual shows up as Pioneer for all 3 events.
- On Load after Browser Back, Cuna Mutual shows as Corporate Partner for all 3 events
- When Running the Query from Events.js directly on api.that.tech I get: That Online - Corporate Partner WI 21 - Pioneer TX 21 - Pioneer
Let me know if there is anything else I can add for this.
More updates: There has to be some sort of caching going on based on the Id for Cuna.
When I use the GetEvent By Slug query in the playground, I get the same responses as #3 above.
So, I'm guessing something along the following:
Initial Load has WI 2021 as the first event, so Cuna gets loaded with Pioneer, and reused for the rest of the event list as defined in #1 to prevent additional queries.
When navigating to That Online - Single Event it loads Cuna and has Corporate Partner
For whatever reason on Browser back, it uses the version of Cuna Loaded for That Online Only and applies to all 3 events, meaning No Partners with Status of Pioneer.