alkem-io / client-web

Default web frontend, enabling browsing the Alkemio platform - so the hosted Challenges and communities collaborating around those Challenges.
https://alkem.io
European Union Public License 1.2
15 stars 6 forks source link

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

Open Comoque1 opened 1 year ago

Comoque1 commented 1 year ago

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 commented 1 year ago

Not reproducible anymore. Closing.

Comoque1 commented 1 year ago

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

hero101 commented 1 year ago

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

Comoque1 commented 1 year ago

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