Lbry-desktop: History error when navigating forward from deeper in the history stack

Created on 26 Aug 2017  路  16Comments  路  Source: lbryio/lbry-desktop

to recreate the history issue:

  1. Open published
  2. Click one of the links
  3. Back
  4. Click some other link
  5. Back
bug

All 16 comments

~@kauffj what's the regression / issue?~

Click a link that opens an http address. I see errors on the console when I do this.

@kauffj I can't recreated the issue, I tried the links from:

  • wallet -> transactions
  • filePage -> report link

also the buttons from settings -> help,
I can't see any errors, are sure it's related ?

What error are you getting ? :confused:

There's one more error I was getting: video

~@hackrush01 what's wrong, care to explain ?~ ^^

@hackrush01 provided this information in slack

to recreate the history issue:
1) Open published
2) Click one of the links
3) Back
4) Click some other link
5) Back

It takes you through all the previously clicked links instead of taking you to publioshed

@btzr-io I didn't test this really, but by inspection I'm not sure this is the right solution. Do we actually need two separate arrays for back and forward? Can't I do this with just one history array and a position? Then when the user navigates forward from a position other than the top of the history stack, you delete the history past your current position.

@btzr-io apologies for sending you on a wild-goose chase here, since the issue as originally reported is only happening in invites_and_rewards (I will fix it there.)

I'm going to update this ticket to just address the case laid out here: https://github.com/lbryio/lbry-app/issues/499#issuecomment-325177376

@kauffj I tried a different approach but didn't work, this was the only way...
using 2 stacks seems the more simple and clean way to do this ^^

Then when the user navigates forward from a position other than the top of the history stack, you delete the history past your current position.

Looks like a lot of work for a simple feature IMO ^^

I'll try your suggestion but it may get messy :upside_down_face:

@tzarebczan this was fixed and merged by @kauffj and it's already working in v0.15.0

Closing, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zedeus picture zedeus  路  29Comments

kauffj picture kauffj  路  21Comments

tzarebczan picture tzarebczan  路  16Comments

kauffj picture kauffj  路  12Comments

ElectronEsq picture ElectronEsq  路  11Comments