question-mark
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.

The state is lost when working with react-router-dom

See original GitHub issue

Here is the codesandbox to reproduce the problem.

Reproduce steps:

  • In Home page, toggle value from false to true.
  • Go to About page,
  • Go back to Home page. Expect value to be still true. But it’s false.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
betulacommented, Nov 5, 2021

Hi @loia5tqd001,

Release 0.1.0 is ready! I appreciate your help! Many thanks!

Happy Coding 😊

1reaction
betulacommented, Nov 4, 2021

Thanks a lot! @loia5tqd001 Great work! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

State is lost while navigating manually in a react redux ...
1) When I manually navigate to product-details from the address bar, The state from /products page should be available.
Read more >
ReactJS | Router - GeeksforGeeks
React Router is a standard library for routing in React. It enables the navigation among views of various components in a React Application, ......
Read more >
Feature Overview v6.6.1 - React Router
React Router enables "client side routing". In traditional websites, the browser requests a document from a web server, downloads and evaluates CSS and ......
Read more >
React Router with Redux: Understanding navigation state
Use React Router to declaratively navigate within your React and Redux applications and maintain state across your app's navigation ...
Read more >
Redux Essentials, Part 4: Using Redux Data
import { Link } from 'react-router-dom' export const PostsList = () => { const posts = useSelector(state => state.posts)
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found