Wpt editor: we can add waypoints (at last !)

This commit is contained in:
vdv committed 2023-02-02 16:10:20 +01:00
1 parent 6451b110b9
commit 55830251e0
4 files changed
+125 -21

No files matched your search

+13
View File
@@ -49,6 +49,19 @@ export const peekCachedSignal = (params: any) => {
return signal;
};
export const cachedSignalValue = async (params: any) => {
const cachedSignal = cache.get({ cacheId: 'signals', key: params.id });
console.log({ caller: 'cachedSignalValue', params, cachedSignal });
if (cachedSignal !== null) {
const value = cachedSignal();
if (value != undefined) {
return value;
}
}
const value = await dispatch({ action: params.method, params });
return value;
};
export const destroyCachedSignal = (params: any) => {
dispatch({
action: 'cancelWatch',