Open djeeg opened 8 years ago
This works and should be the 'client' example provided in the README. I don't understand why the example uses the match
method, something recommended by React Router to not be used for much other than server-side rendering.
I am working on a project that makes use of async chunked routes using react-router's getChildRoutes and webpack2's System.import
I am seeing an issue when using this code:
The match() causes an additional call to react-router's getChildRoutes, which adds a few hundred milliseconds to route transition time
I am prototyping an alternative way of doing this, and wanted some feedback Hints taken from this thread https://github.com/markdalgleish/redial/issues/3
<Router onUpdate={RouterOnUpdate} />
With
This approach seems to remove the lag during route transition