that-website icon indicating copy to clipboard operation
that-website copied to clipboard

Sponsors don't appear when navigating backwards

Open theClarkSell opened this issue 5 years ago • 2 comments

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.

theClarkSell avatar Jun 17 '20 20:06 theClarkSell

@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 avatar Jun 20 '20 17:06 zaudtke

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.

zaudtke avatar Jun 20 '20 17:06 zaudtke