Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix PerspectiveSettingsContextProvider cache

sytolke2d384521db0
diff --git a/package-lock.json b/package-lock.json
index 596c3335d..8eb5709a1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -197,7 +197,7 @@
"yarn": "please-use-npm"
},
"optionalDependencies": {
- "@tagspacespro/tagspacespro": "5.0.30"
+ "@tagspacespro/tagspacespro": "5.0.31"
}
},
"node_modules/@aashutoshrathi/word-wrap": {
@@ -13596,9 +13596,9 @@
}
},
"node_modules/@tagspacespro/tagspacespro": {
- "version": "5.0.30",
- "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.30/8e4c9361bbcc670e3d38b946d861e94388c8c62d",
- "integrity": "sha512-PId9fmgMgDQJqJfdM9zITlI+WKBecYqzmBtzk7AyUCe5/E1QW+wIIg4ihjE3vA28eXUQUv2O/hADXVNAjfd1GQ==",
+ "version": "5.0.31",
+ "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.31/59eb00bc53e3af2384a5559b5fe6741b01a27a93",
+ "integrity": "sha512-E33+UpPwsQEjznH8xsVuvOauQB6W/YKR8HNM9xQIFl86wIsmz+BrI8jDHGLwagPI/4HgzE8BNlPN8NPvEAq7Aw==",
"license": "Proprietary",
"optional": true
},
@@ -59235,9 +59235,9 @@
}
},
"@tagspacespro/tagspacespro": {
- "version": "5.0.30",
- "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.30/8e4c9361bbcc670e3d38b946d861e94388c8c62d",
- "integrity": "sha512-PId9fmgMgDQJqJfdM9zITlI+WKBecYqzmBtzk7AyUCe5/E1QW+wIIg4ihjE3vA28eXUQUv2O/hADXVNAjfd1GQ==",
+ "version": "5.0.31",
+ "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.31/59eb00bc53e3af2384a5559b5fe6741b01a27a93",
+ "integrity": "sha512-E33+UpPwsQEjznH8xsVuvOauQB6W/YKR8HNM9xQIFl86wIsmz+BrI8jDHGLwagPI/4HgzE8BNlPN8NPvEAq7Aw==",
"optional": true
},
"@teamsupercell/typings-for-css-modules-loader": {
diff --git a/src/renderer/hooks/PerspectiveSettingsContextProvider.tsx b/src/renderer/hooks/PerspectiveSettingsContextProvider.tsx
index e4f062740..7f4318385 100644
--- a/src/renderer/hooks/PerspectiveSettingsContextProvider.tsx
+++ b/src/renderer/hooks/PerspectiveSettingsContextProvider.tsx
@@ -201,7 +201,7 @@ export const PerspectiveSettingsContextProvider = ({
setSettings: setSettings,
saveSettings: saveSettings,
};
- }, [settings.current]);
+ }, [settings.current, currentDirectoryPath]);
return (
<PerspectiveSettingsContext.Provider value={context}>