When wanting to navigate to a project page, the first click doesn't register (no loading of the project's feed), but the address bar changes to the right destination. Only the second click (doesn't even have to be on the same contribution) registers and loads the feed of the clicked project.
This is what the browser console spew out from the first unsuccessful click:
Browser: Chrome 62.0.3202.94 (Official Build) (64-bit) on Windows 10
Getting closer to the source of the bug
After playing in the browser console and putting some breakpoints, I noticed some things that might help solving this bug.
Stepping through the
renderContributions() function in src/feed/SubFeed.js:
- me wanting to open the "OpenYGO" project page
- what are WordPress posts doing here? I know that was the last project page I visited, but I returned to the main feed before doing step 1... weird
- the filter function seems to be rejecting the WordPress posts as it should
I think when clicking for the first time on a link to the project page, the script tries to load a cached list of contributions, from whichever project page one last visited. Now since the cached contributions don't belong to the requested project,
renderContributions() returns empty and the feed doesn't change. Only on the second click, that the script seems to work.
Now I'm not familiar with the Utopian/Busy code, so I'd rather leave the bug fixing to more able devs :)
Posted on Utopian.io - Rewarding Open Source Contributors