Questions tagged [connected-react-router]

1

votes
1

answer
180

Views

Can't get Connected React Router set up properly

I'm trying to update to connected-react-router while updating all my React, Redux and Router versions. I am having trouble with the root reducer and store creation. The previous reducer code that was working was... const appReducer = combineReducers({...reducers, router: connectRouter}); export c...
user3775501
1

votes
2

answer
90

Views

Are `redux-loop` and `connected-react-router` compatible?

I have made a simple react app with the sample code from the following blogpost, which I leave only as a citation. I am otherwise new to the javascript ecosystem and am trying to fit together several unfamiliar tools (in order to learn them). https://medium.com/@notrab/getting-started-with-create-re...
Richard Rast
2

votes
1

answer
138

Views

React Router props `location` / `match` not updating with `ConnectedRouter`

I've got my app setup as in the docs: Step 1 ... import { createBrowserHistory } from 'history' import { applyMiddleware, compose, createStore } from 'redux' import { connectRouter, routerMiddleware } from 'connected-react-router' ... const history = createBrowserHistory() const store = createStore(...
ilovett
0

votes
0

answer
10

Views

How to use same Route for different components within same component

I'm having lots of problems rendering two components within the main App component, being rendered in different part of the app, in case the route matches '/decks/:deckId' These are the libraries i'm using (react router v4, and connected-react-router v5): import React from 'react'; import { Route...
David