You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
Each time dispatch is invoked redux re-renders the whole application. So what we have now is the index page (/) re-renders itself 8 times causing massive lags on mobile devices.
We should probably start with batching.
I'm not sure if it's possible to solve this issue without ditching triggers in favor of something more integrated with redux (see #667).
The text was updated successfully, but these errors were encountered:
Each time
dispatch
is invoked redux re-renders the whole application. So what we have now is the index page (/
) re-renders itself 8 times causing massive lags on mobile devices.Examples of problematic code:
https://github.com/Lokiedu/libertysoil-site/blob/stable/src/pages/list.js#L87 (7 dispatches + 1 from App)
https://github.com/Lokiedu/libertysoil-site/blob/stable/src/pages/geotag.js#L70 (4 + 1)
Possible solution:
hydrate
API methods to optimize the most important pages Create 'hydrate' api methods for each important page #664.We should probably start with batching.
I'm not sure if it's possible to solve this issue without ditching triggers in favor of something more integrated with redux (see #667).
The text was updated successfully, but these errors were encountered: