-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Redirect from redux-store #8488
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please search before posting a new issue. This has already been answered: #8481 (comment) |
Your proposed solution doesn't work in redux store as route changes but components doesn't re render APP.jsimport "./App.css"; import { let history = createBrowserHistory(); function App() { export default App; Redux Store actions export const Login = (data) => (dispatch) => {
}; Issueroute changes to localhost:3000/welcome but page remains same |
What is the new or updated feature that you are suggesting?
before you could redirect from redux actions using history.push() method but it doesn't seem to be possible as useNavigate can only be used in react functional component
Why should this feature be included?
there should be a method to redirect user from redux store as it used to be done by history.push(). now if we use history.push() it changes route but component remains the same as route change is not detected.
The text was updated successfully, but these errors were encountered: