forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: remove more references to clearAllCaches
This commit is contained in:
@@ -178,8 +178,8 @@ export const PlatformServiceMixin = {
|
|||||||
logger.debug(
|
logger.debug(
|
||||||
`[PlatformServiceMixin] ActiveDid changed from ${oldDid} to ${newDid}`,
|
`[PlatformServiceMixin] ActiveDid changed from ${oldDid} to ${newDid}`,
|
||||||
);
|
);
|
||||||
// Clear caches that might be affected by the change
|
// // Clear caches that might be affected by the change
|
||||||
(this as any).$clearAllCaches();
|
// (this as any).$clearAllCaches();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
@@ -244,6 +244,8 @@ export const PlatformServiceMixin = {
|
|||||||
/**
|
/**
|
||||||
* Self-contained implementation of parseJsonField
|
* Self-contained implementation of parseJsonField
|
||||||
* Safely parses JSON strings with fallback to default value
|
* Safely parses JSON strings with fallback to default value
|
||||||
|
*
|
||||||
|
* Consolidate this with src/libs/util.ts parseJsonField
|
||||||
*/
|
*/
|
||||||
_parseJsonField<T>(value: unknown, defaultValue: T): T {
|
_parseJsonField<T>(value: unknown, defaultValue: T): T {
|
||||||
if (typeof value === "string") {
|
if (typeof value === "string") {
|
||||||
@@ -1630,7 +1632,7 @@ declare module "@vue/runtime-core" {
|
|||||||
// Cache management methods
|
// Cache management methods
|
||||||
$refreshSettings(): Promise<Settings>;
|
$refreshSettings(): Promise<Settings>;
|
||||||
$refreshContacts(): Promise<Contact[]>;
|
$refreshContacts(): Promise<Contact[]>;
|
||||||
$clearAllCaches(): void;
|
// $clearAllCaches(): void;
|
||||||
|
|
||||||
// High-level entity operations (eliminate verbose SQL patterns)
|
// High-level entity operations (eliminate verbose SQL patterns)
|
||||||
$mapResults<T>(
|
$mapResults<T>(
|
||||||
|
|||||||
Reference in New Issue
Block a user