Update react-router to v4 - fix #1266 #1275
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for issue #1266 - Update react-router to v4
Notes
react-router-dom@4.2.2which is same asreact-router@4.2.0plus DOM bindings for browser environment.forceUpdate"hack" inProjectToolBarcomponentLooks like Discourse doesn't work in dev enverinoment as I getTested with the provided user below and the old project. Works after fix in the second commit.Failed to create topic in Discourse: Unable to create discourse userwhen I try to post a message for project. So I couldn't make sure that route/discussions/:feedIdhandled properly. Though appropriate changes have been made to make it work.window.analytics.userin not a functionnpm-shrinkwrap.jsonto README.--fixflag fromnpm run lintcommand as sometimes it can truncate files during fixing (haven't found out why). And added commandnpm run lint:fixwith fix flag so the developer is always aware of possible changes when run.Found possible issues in existent code
On the way I saw some warnings in existent code which are not related to my changes. Though I've noted them just in case.
Page https://connect.topcoder-dev.com/projects doesn't show project list even if there are some projects created. Server doesn't return any projects on https://api.topcoder-dev.com/v4/projects/?limit=20&offset=0&fields=id,name,members,status,type,actualPrice,estimatedPrice,createdAt,updatedAt,details&sort=createdAt+desc
RedirectComponentdoesn't return anything thus when navigate/loginthere is error in console:When open a project there is a warning in browser console:
When open project specifications there are warning in browser console:
Also from time to time warning from Formsy package appears
For example, when editing project specification, click Add / Edit Feature, select some feature and click Save and Close warning appears in browser console.