-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
React-Router Running Slow on Hybrid App #1000
Comments
I'm working on a large, isomorphic react application using react-router and fluxxor. We have the exact problem. The responsive site works fine on new/faster computers -- tested and works fast on iPhone 6, and MacBookPro. However it is noticeably slower on older devices. We've tested Android on Samsung Note 2 running Android 4.3 and older Windows computers. We've profiled the timelines and it appears to be whenever our actions trigger changes, causing re-renders. Not necessarily a lot of DOM changes (pretty small changes actually), but apparently a lot of react JS (mounting and other lifecycle methods as well as diffing I assume). We've been able to make some improvements by batching our actions to result in less 'emit change' events. But this seems to me to be an anti-pattern for react, where you should loosely be able to re-render. I'm thinking its a brute CPU power problem; its just to much JS.... (hoping it is not that, that would be horrible). I hope others have more insights to this. |
Seems like this is (or perhaps was?) more of an issue with React / react router.. @oliviertassinari any thoughts? |
First of all, the PhoneGap runtime is faster on iOS than on Android. |
That is good advice. |
@ftorre104 feel free to close this issue if you want |
I'm going to close this for now. We also have another issue that relates to performance using Cordova #2036 |
* Use strict type for MaterialUIPickersDate * Update to date-io 1.3.0 * [docs] Add installation note for typescript users * Make proptypes search to sort the results by best match * Fix date-io/core version * Make custom typing of @date-io/type for docs * Upgrade to @date-io 1.3.4 * Fix moment date-utils.test.tsx * Remove installation step for importing @date-io/type module * Add typescript changes to upgrading to v3 guide
Hi all,
I've created a project based on Docs project and after got rid of some stuff that I wont use I've compiled a hybrid app using phonegap. Basically I kept Left Nav menu and a few pages/components.
I got surprised after install on a Android Samsung S4 and realise that when selecting any link from the left nav it takes a couple of seconds to get the page rendered on the main container.
This does not happen on iPhone.
After some debugging I realise that the problem occurs after react-router triggers.
Using react-router on another app I can't face any problem.
Are there anybody looking into that?
The text was updated successfully, but these errors were encountered: