All Questions
69 questions
2
votes
1
answer
619
views
Redux how to get updated store state in root component
My root App component looks like this:
class App extends Component {
render() {
const state = store.getState();
const { isAuthenticated } = state.auth;
return (
<Provider store=...
1
vote
0
answers
590
views
Want to pass multiple components in react route router
want to pass multiple components in react route method as
common page is used in both admin and common user.
i want a proper way to pass multiple components in the route as
i have done it but it is ...
0
votes
0
answers
206
views
Router renders nothing
I copied store/Router solution from my previous project where it was working fine. Then updated redux/router/dom dependencies, made some changes, ex. deleted IndexRoute and used createBrowserHistory. ...
0
votes
2
answers
422
views
How do I stop nested React components that dispatch Redux actions which update state from getting stuck in an infinite loop?
I am having an issue with my nested react components getting stuck in an infinite loop.
The outer component is a DashboardLayout. To separate redux logic from 'pure' layout logic I have divided the ...
0
votes
1
answer
470
views
Redux connected component does not render
I'm new to redux, and currently trying to get a connected component to render, yet nothing renders. The header tag in Main.js should render, yet it doesn't. I really don't get what the problem is, ...
1
vote
0
answers
215
views
Any other alternative of react-router-redux
I want to use history and location in action creators (which is a part of redux) but history and location are only accessible is routed component, Yes we can pass history and location as parameters of ...
1
vote
1
answer
2k
views
React-redux-router migrate to connect-react-router
I build the project from https://github.com/briancappello/flask-react-spa
and try to upgrade the dependencies .
Then i got this error.
I follow the connect-react-router guide setting , then this ...
1
vote
0
answers
133
views
Iterating in depth of json object React.js-redux,
I have a JSON object stored in Redux, I have to display all the titles{ As LINKS} when clicking on the title it displays its section:[....](AS TITLE{LINKS}) and iterating in depth until JSONOBJECT....
6
votes
3
answers
8k
views
Error in <Provider> - Check the render method of `Provider`. react-redux
enter image description here
Code: this is my index.js file
index.js
import { Provider } from "react-redux";
import { createStore } from 'redux';
import App from './app';
import ...
0
votes
2
answers
494
views
ReactJS: Component not loaded even after URL changes
After spending time with withRouter and connect methods, I'm still unable to figure out why my view isn't updating with change in URL.
When I navigate from "/" to "/about", page doesn't update, ...
0
votes
1
answer
1k
views
history.push(path) is not working in react-router-dom v4, with redux while redirecting to 404
I am trying to redirect user to not-found url when unknown url is given,
and I am using history.push('not-found') for same,
but it doesn't work, inside ComponentwillReceiveProps().
...
0
votes
1
answer
765
views
How to add properties to react-router-redux LOCATION_CHANGE?
I am writing an application using react-router-redux. When the LOCATION_CHANGE action is dispatched, I want to update the UI to show progress based on how far in a survey the user is. My state has ...
9
votes
1
answer
8k
views
react-router-redux vs connected-react-router for react v4
official github page of react-router-redux says that the project is no longer maintained and is now deprecated. They recommend to use connected-react-router instead.
react-router-redux has:
31k stars
...
0
votes
0
answers
2k
views
React-router-redux and redux-saga CORS request issue
I'm trying to implement authentication in a new React app based on Core UI, whereas I have an old functional version using another theme in Angular 5.
I tried to follow this tutorial, but it gaves me ...
3
votes
3
answers
1k
views
Redux connect "blocks" navigation with react-router-redux
In an application using react, redux and react-router, I'm using react-router-redux to issue navigation actions. I found that wrapping routes in a component with connect blocks navigation.
I made a ...