Various performance improvements to the store #5522
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Various performance improvements to the store
Pull Request Type
Description
As my store typings pull request seems to not work for some people (some IDEs struggle with the complicated type gynastics that were required to get that pull request to work), I've decided to extract the performance improvements from that pull request into their own one and add a few other minor improvements to the mix. That way we get those improvements regardless of whether we ever merge the other pull request.
Here is the list of improvements:
getRegionData
action directly instead of wrapping it in an object. Using an object is only necessary when an action takes multiple parameters.Testing
Check that changing the locale still fetches the appropriate region translations.
Desktop