gbif / gbif-web

Apache License 2.0
6 stars 9 forks source link

state management: avoid updating filter with empty changes #646

Open MortenHofft opened 1 month ago

MortenHofft commented 1 month ago

To avoid unneccessary rerenders avoid updating the filter state with "empty" changes. Remove nulls, empty arrays and compare hashes before doing an update