Questions tagged [react-router-redux]

A library of bindings to keep react-router and redux in sync (formerly known as redux-simple-router).

A library of bindings to keep react-router and redux in sync (formerly known as redux-simple-router).


Related tags

502 questions
0
votes
1 answer

react-router-redux: Routes change but components are not displayed

I'm attempting to set up routing using react-router-redux with Immutable.js reducers. I've set up the store using syncHistoryWithStore, and when I click on a Link, I can see that the correct @@router/LOCATION_CHANGE action is dispatched, that the…
0
votes
2 answers

Why doesn't react-router-redux work when using a custom basename?

I am trying to create a React app that can be hosted at an arbitrary path other than the root - "/" So, I am trying to apply a custom basename using react-router-redux. I am creating a custom browserHistory using the createBrowserHistory module from…
Jeff Fohl
  • 1,920
  • 1
  • 20
  • 25
0
votes
0 answers

React Router Behaviour on Page Reload

This is a bit weird and I would like to get to the bottom of it. I have a Product Details page where I check if URL matches with a specific param then, it will continue otherwise it should replace with that specific parameter and reload the page.…
Muhammad Ateeq Azam
  • 863
  • 1
  • 10
  • 23
0
votes
2 answers

react-router isn't re-rendering redux connect()ed components on route change

I'm using react-router-redux for navigation and have nested connect()ed components. This seems to work fine, except that my nested components don't re-render when the react-router route changes. Specificallyl, in the structure below, App and…
nicholas
  • 12,790
  • 19
  • 75
  • 126
0
votes
2 answers

React/Redux - Making separate fetch call on individual routes

I have a redux store which I want to connect to my App, but I also want to only fetch data relevant to the specific component that is being rendering by react-router. At the moment it is connected to a container element (App.js) which then feeds…
Paulos3000
  • 2,717
  • 7
  • 30
  • 63
0
votes
2 answers

Nothing happening and no errors with dispatch functions

I'm managing my React application route with react-router and react-router-redux. I setting router with following configuration: import {Provider} from 'react-redux' import {Router, browserHistory} from 'react-router' import {createStore,…
Lai32290
  • 6,540
  • 15
  • 52
  • 87
0
votes
1 answer

Init routes for react router based on ajax response

In my app I have privelege for Admin page and after login I want to grant access to this page only for users who have this privelege. Is any way to load routes for component with ajax before application is inited? Is any way to change routes for …
Alekstim
  • 442
  • 1
  • 7
  • 18
0
votes
0 answers

Render 404 page when route is incorrect or param is missing in url. React/Redux

Below is my url : - http://local.abc.com/pages/red/4 red and 4 is param , if it is unavailable or url is improper i want to redirect to 404 page. for this i have added below route in routes.jsx 1 ] Routes.jsx import React from 'react' import {…
Kalashir
  • 999
  • 11
  • 32
0
votes
1 answer

React Unknown Prop Warning

I was trying to render a DOM element with a prop but my attempt is not recognized by React as a legal DOM attribute/property. So I started researching for a solution and I found this source from React Warning Documentation. However, although well…
0
votes
0 answers

Several errors when integrating react router to React Redux application

I'm trying to utilize the React router package in my React + Redux application, and doing so gives me the following errors: Unexpected key "listings" found in previous state received by the reducer. Expected to find one of the known reducer keys…
kibowki
  • 3,726
  • 11
  • 40
  • 70
0
votes
1 answer

Selection of Linked Selections

I am using the React + Redux + Router stack and by this time I have got a simple React component where I am trying to develop a selection of linked selection with this behavior example. In fact my component can easily consume this variable: var…
Francisco Maria Calisto
  • 1,578
  • 2
  • 15
  • 34
0
votes
1 answer

Dynamic React-Router routes

I want to use different routing based on some partial state, so I came up with the following: in my entry file: import routes from './routes.js' ReactDOM.render(
Maxim Zubarev
  • 2,127
  • 1
  • 26
  • 44
0
votes
2 answers

Access props.location object from redux-saga

My end goal is to access this.props.location.pathname inside redux-saga when making API calls. Here's my current working solution, albeit with react raising an error. I'm using mxstbr/react-boilerplate-brand as my codebase. In my wrapping component,…
user888750
0
votes
1 answer

Access query parameters in async call (react redux)

My react redux (4.4.5) project uses react-router-redux(4.0.5) and redux-async-connect (0.1.13). Before I load my container component, I want to asynchronously load data from my API. The url contains a query parameter named "category" which is used…
Cornel Janssen
  • 579
  • 8
  • 30
0
votes
1 answer

how to access store in actions to dispatch push in react-router-redux?

In the documentation there's some information on how to issue navigation events via Redux actions ( https://github.com/reactjs/react-router-redux#what-if-i-want-to-issue-navigation-events-via-redux-actions ), but how to access store from the actions…
punkbit
  • 6,464
  • 7
  • 45
  • 74