Fix testing

This commit is contained in:
thororen 2024-04-24 12:41:13 -04:00
parent f2870325e3
commit 2cb6975f95

View file

@ -82,7 +82,7 @@ export function createPluginStore<Z extends PluginSettings = {}>(pluginName: str
const use: PluginUse<Z> = () => { useSettings().plugins[pluginName].stores[storeName]; return get(); }; // useSettings is called to update renderer (after settings change) const use: PluginUse<Z> = () => { useSettings().plugins[pluginName].stores[storeName]; return get(); }; // useSettings is called to update renderer (after settings change)
const initialSettings: Z = f(set, get); const initialSettings: Z = f(set, get);
const proxiedSettings = createObjectProxy(initialSettings as unknown, updateCallback); // Setup our proxy that allows us connections to the datastore const proxiedSettings = createObjectProxy(initialSettings as object, updateCallback); // Setup our proxy that allows us connections to the datastore
function updateCallback(updatedObject: any) { function updateCallback(updatedObject: any) {
if (!startupStates[storeName]) return; // Wait for the startup information to overwrite the blank proxy if (!startupStates[storeName]) return; // Wait for the startup information to overwrite the blank proxy