ThatConference / that-website

THAT Conference
https://www.thatconference.com
MIT License
32 stars 22 forks source link

Sponsors don't appear when navigating backwards #525

Open theClarkSell opened 4 years ago

theClarkSell commented 4 years ago

Browse to https://www.thatconference.com/

  1. Browse to https://www.thatconference.com/
  2. Then head to THAT Online
  3. Hit back button. and sponsor section is empty.

It appears the query for sponsors isn't running or the apollo cache is empty.

zaudtke commented 4 years ago

@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.

  1. On initial Load, Cuna Mutual shows up as Pioneer for all 3 events.
  2. On Load after Browser Back, Cuna Mutual shows as Corporate Partner for all 3 events
  3. 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.

zaudtke commented 4 years ago

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.