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.

Using react-router-redux

See original GitHub issue

Hi, is there any way I can wrap history with syncHistoryWithStore ?

import {syncHistoryWithStore} from 'react-router-redux';

const history = syncHistoryWithStore(
    browserHistory,
    store,
  );

Thanks.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
catamphetaminecommented, Mar 15, 2017

  // (optional)
  history:
  {
    // (optional)
    // `history` options (like `basename`)
    options: {}

    // (optional)
    // Custom `history` wrapper, like `syncHistoryWithStore` from `react-router-redux`
    wrap: (history, { store }) => history
  }

0reactions
catamphetaminecommented, Mar 24, 2017

How do they pass routerMiddleware(history) to createStore when history itself needs store to be created in the first place as you described in your first post

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Router with Redux: Understanding navigation state
Connected React Router is a Redux binding for React Router v4 and v5. It synchronizes router state with Redux store via a unidirectional...
Read more >
Using React Router with Redux - Pluralsight
Redux and React Router are two of the most used React libraries. Redux is used for app state management, while React Router is...
Read more >
reactjs/react-router-redux: Ruthlessly simple bindings to keep ...
This library allows you to use React Router's APIs as they are documented. And, you can use redux like you normally would, with...
Read more >
Redux Essentials, Part 4: Using Redux Data
The official Redux Essentials tutorial: learn how to work with complex Redux state in React components.
Read more >
Deep Redux Integration - React Router v5
Redux is an important part of the React ecosystem. We want to make the integration of React Router and Redux as seamless as...
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