client-web icon indicating copy to clipboard operation
client-web copied to clipboard

BUG: Opening challenge or opportunity triggers ..Page request twice

Open Comoque1 opened this issue 2 years ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://dev.alkem.io/un-sdgs/dashboard
  2. Open a challenge from the hub - challengePage request is triggered twice image.png
  3. Open an Opportunity from the challenge - opportunityPage request is triggered twice image.png

Expected behavior When opening challenge and opportunity, challengePage and opportunityPage requests are triggered only once.

Comoque1 avatar Jan 05 '23 10:01 Comoque1

Not reproducible anymore. Closing.

Comoque1 avatar Jan 10 '23 10:01 Comoque1

Reopening the bug, as it is reproducible again on dev env.

Comoque1 avatar Jan 17 '23 14:01 Comoque1

It is not reproducible for all challenges and I failed to identify any patterns for the challenges below.

Seems like a cache issue - apollo is failing to match the query with the query params and makes the requests everytime, failing to obey the fetch policy. But I could be wrong and something else is going sideways.

01 No Poverty - challengePage is doubled and then executed each time again instead of retried from the cache. 02 Zero Hunger - challengePage is doubled and then executed each time again instead of retried from the cache; activityLogOnCollaboration is doubled 03 Good Health And Well-Being - has no problems 04 Quality Education - has no problems

hero101 avatar Jan 24 '23 11:01 hero101

The Issue is 100% reproducible, when Challenge / Opportunity has at least one Callout Card.

Comoque1 avatar Feb 03 '23 16:02 Comoque1

The issue is still reproducible on Space and Subspace levels

https://acc-alkem.io/space-july26-2024/dashboard image.png

image.png

Comoque1 avatar Jul 26 '24 11:07 Comoque1