react-boilerplate / react-boilerplate-cra-template

:fire: Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
https://react-boilerplate.github.io/react-boilerplate-cra-template/
MIT License
1.87k stars 394 forks source link

component not rendered when route is pushed from saga middleware #74

Closed SanskarSans closed 4 years ago

SanskarSans commented 4 years ago

To push to different location this is what I used.

function forwardTo(location) {
  console.log("location", history, location);
  history.push(location);
}

yield call(forwardTo, "/");

This just changes the url but not renders the component for that route.

I saw the line "connected-react-router" is not needed so I am not aware how it can be done without it.

Can-Sahin commented 4 years ago

https://github.com/react-boilerplate/react-boilerplate-cra-template/issues/32#issuecomment-633643478