Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: App navigation #50

Merged
merged 2 commits into from
Jul 17, 2023
Merged

Fix: App navigation #50

merged 2 commits into from
Jul 17, 2023

Conversation

brunomenezes
Copy link
Collaborator

@brunomenezes brunomenezes commented Jul 17, 2023

Summary

A report was made that links in the headers were changing the address bar, but the app would not "display" the page itself. But the reality is that the links and buttons (usually calling the next router programmatically) would also not work. After checking the released tags, the problem was introduced on v3.5.0 after checking the changes between the tags, the cause was an item added in the useEffect watchlist causing an infinite loop in two useEffect hooks inside the ga4Tracker.tsx here and here. The gist is that the main-thread was flooded with calls and nextJS router system was having a hard time to do its job.

PS: That was flying under the radar because most of the people enter the App with their wallets automatically connected (including us 🫠), causing the useEffect to stop firing events as the analytics would be finally initialised.

Before and After

before-changes

after-changes

Remove the analytics object from to the useEffect watch list that was causing a infinite loop. Therefore, affecting the nextJS routing system to take a long time to schedule its change since the main-thread was floaded.
Add information for next explorer release v3.5.2
@brunomenezes brunomenezes added type:bug Something isn't working and requires a fix staking Changes targeted to the Staking platform labels Jul 17, 2023
@vercel
Copy link

vercel bot commented Jul 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rollups ✅ Ready (Inspect) Visit Preview Jul 17, 2023 1:33pm
staking ✅ Ready (Inspect) Visit Preview Jul 17, 2023 1:33pm

@brunomenezes brunomenezes merged commit 492777c into main Jul 17, 2023
7 of 8 checks passed
@brunomenezes brunomenezes deleted the fix/app-navigation branch July 17, 2023 13:35
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5576322396

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 73.137%

Totals Coverage Status
Change from base Build 5526535182: 0.0%
Covered Lines: 2546
Relevant Lines: 3317

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staking Changes targeted to the Staking platform type:bug Something isn't working and requires a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants