Bug when navigating to a project pagesteemCreated with Sketch.

in #utopian-io6 years ago (edited)

The bug:

linkError.png

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:
2017-11-17_22-03-39.png

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:

linkErrorConsole.png

  1. me wanting to open the "OpenYGO" project page
  2. 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
  3. 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

Sort:  

Thanks for your contribution. It has been approved.


You can contact us on Discord
[utopian-moderator]

Hey @callmetoxy I am @utopian-io. I have just upvoted you at 6% Power!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Work on your followers to increase the votes/rewards. My vote is now primarily based on that, humans rule. Good luck!
  • Wondering why other contributions got more? I introduced a competition factor. My vote is also based on how competitive the category used is.

Did you know?

  • I am going to become the first Steem Community-Driven Witness. Follow me to know when!
    Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.24
TRX 0.11
JST 0.031
BTC 61585.79
ETH 3005.19
USDT 1.00
SBD 3.68