-
Notifications
You must be signed in to change notification settings - Fork 392
07 Form Update dependencies #116
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
Comments
Hi @brauliodiez , I'm having some trouble migrating from react-router 3 to 4. While some componets as has been directly moved to react-router-dom some others have been removed such as:
So it's needed to rethink the app to update. What do you suggest to do? BR. Carlos. |
Hi Carlos, Some things that need to be changed:
|
Hi, I have some doubts regarding the hashHistory refactor. In my PR I am using the global object history and it works but I am not sure if it's correct. I think would be better to access using this.props.history in the child components but I have not found a way to do it. Any suggestion? |
I do not know if it is applicable to this case without looking further into the code, but here is how I did it in a personal project, taking for example a Redux Action to delete one object from the collection in the Backend
Then when calling that action from the corresponding Container, I added a callback to navigate backwards using this.props.history. The code can be found below (in this case, I just go back straight away to the root URL)
The only problem with this approach is that it may need a deeper refactoring of the code that goes beyond the original scope of this issue. |
Update dependencies and check if code is uptodate
The text was updated successfully, but these errors were encountered: