only get version once #1048
Labels
p-low-priority
reserved
Expected to be assigned to developer by project so others should not work on without prior approval.
t-enhancement
This issues tracks a potential improvement to the software
Is your feature request related to a problem? Please describe.
OED displays the version at the bottom of each page. Each time you change pages (to/from graphic page or any other page) it does an api call to get the version. Since the version cannot change except after an upgrade, the version will remain the same so this api call is unneeded.
Describe the solution you'd like
If there is a version in Redux state then the api call should not be made. The code in src/client/app/actions/version.ts already has a shouldFetchVersion() function so it can be augmented to check for the Redux state.
Describe alternatives you've considered
OED works fine but this is an inefficiency and not in line with the new way other state is only fetched once.
Additional context
None
The text was updated successfully, but these errors were encountered: