Fix/properly reset cache and queues on server url change and backup import (#725)
* Reset cache on server url change * Reset image queue * Completely reset apollo store
This commit is contained in:
@@ -88,6 +88,7 @@ export const ServerSettings = () => {
|
||||
const handleServerAddressChange = (address: string) => {
|
||||
const serverBaseUrl = address.replaceAll(/(\/)+$/g, '');
|
||||
setServerAddress(serverBaseUrl);
|
||||
requestManager.reset();
|
||||
};
|
||||
|
||||
const updateSetting = <Setting extends keyof ServerSettingsType>(
|
||||
|
||||
Reference in New Issue
Block a user