Fix replies section showing the same replies multiple timessteemCreated with Sketch.

in #utopian-io6 years ago (edited)

Bug Fixes

What was the issue?

The replies section showed the same replies multiple times if you navigated to another page and back again on the main busy.org website.

GitHub Issue

Utopian.io Post

What was the solution?

The solution was quite simple. When the component mounts it needs to check that there are currently no replies before fetching them. Now when the user first loads the page there are no replies so they are fetched. On subsequent loads e.g. after browsing to the home page and back, the same ones aren't fetched again. This doesn't hinder the get more replies function which still works if the user has lots of replies.

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you, great fix!


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Congratulations @jrawsthorne! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.

To support your work, I also upvoted your post!
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

Hey @jrawsthorne! Thank you for the great work you've done!

We're already looking forward to your next contribution!

Fully Decentralized Rewards

We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.me/utopian-io

Congratulations @jrawsthorne! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the total payout received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 58239.61
ETH 2287.71
USDT 1.00
SBD 2.50