gbif / gbif-web

Apache License 2.0
6 stars 9 forks source link

ui flashes due to excessive context updates #657

Open MortenHofft opened 1 week ago

MortenHofft commented 1 week ago

The intl provider updates the messages on all interactions that require url updates like pushing a search param Leading to an extreme amount of requests and rerenders Translations are reloaded constantly and requires everything to refresh.

MortenHofft commented 1 day ago

@danielvdm2000 I looked briefly. It is related to the concept of using loaders on the routes. The applyI18nPlugin is loading 200kb of data on any url state change. And reloads the entire app. We need to address this before proceeding. It is a cause of other bugs I suspect and it makes it impossible to evaluate performance of other parts of the site.