client-web
client-web copied to clipboard
BUG: Opening challenge or opportunity triggers ..Page request twice
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to https://dev.alkem.io/un-sdgs/dashboard
- Open a challenge from the hub - challengePage request is triggered twice
- Open an Opportunity from the challenge - opportunityPage request is triggered twice
Expected behavior When opening challenge and opportunity, challengePage and opportunityPage requests are triggered only once.
Not reproducible anymore. Closing.
Reopening the bug, as it is reproducible again on dev env.
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
The Issue is 100% reproducible, when Challenge / Opportunity has at least one Callout Card.
The issue is still reproducible on Space and Subspace levels
https://acc-alkem.io/space-july26-2024/dashboard
