Theory: Localizations are cached for 5 minutes by default in react-query. This makes localizations dated for 5 minutes when a localization is updated.
Task:
[ ] Update localization and see how long it takes before the text is automatically updated without using refresh. If it takes 5 minutes then do task below
[ ] Update react-query method for localizations to refetch on a given amount of time.
[ ] Find out the best amount of time before refetch
Proposed solution: 1. enable when asking in localization query that when there are no localizations it should give status failed. 2. Make react-query refetch when status failed
Description of the bug
Theory: Localizations are cached for 5 minutes by default in react-query. This makes localizations dated for 5 minutes when a localization is updated.
Task:
https://stackoverflow.com/questions/77082565/fetch-new-data-every-30-seconds-using-usequery-in-react
Steps To Reproduce
Additional Information
No response