Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] moving to another page loses state of previous state

See original GitHub issue


when a user is in the search page and they click on the other pages, the previous state of the previous page is gone, which means if they were in a chat or were searching, they can’t access that state anymore


  • Keep a general state for each tasks going on in the search page
  • When a user is not searching and not in a chat, their current state should be notSearching, when they are searching, it should be searching and when they are in a chat with someone, it should be Paired
  • When a user leaves a route and come back, display the component needed based on their current state


No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

Shivam164commented, Oct 17, 2022

@Dun-sin, It is not yet assigned to me. I have read the rules.

mathiasayivorcommented, Oct 25, 2022

@Dun-sin I’m taking this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redux loses state when navigating to another page
In the following piece of code, I set the state, and navigate to a new window. createBookGroup() { let groupToCreateInfo = { bookTitle:...
Read more >
Preserving and Resetting State - React Docs
State is isolated between components. React keeps track of which state belongs to which component based on their place in the UI tree....
Read more >
'history.state' object is getting lost when navigate using back ...
I think there is a small bug - the `history.state` object is getting lost when navigate using back/forward buttons. The fix should be...
Read more >
Hover state not lost when window is minimized or covered
I reproduced on Windows by finding a hover effect on a random web page, then pressing Windows down arrow, then using the mouse...
Read more >
Activity state changes - Android Developers
If a new activity or dialog appears in the foreground, taking focus and partially covering the activity in progress, the covered activity loses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found