1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

clean-up: namespace-store, updating comments

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-03-10 14:36:44 +02:00
parent 55fa8bd743
commit 779a8600b0
2 changed files with 2 additions and 4 deletions

View File

@ -11,9 +11,7 @@ export const namespaceUrlParam = createPageParam<string[]>({
name: "namespaces", name: "namespaces",
isSystem: true, isSystem: true,
multiValues: true, multiValues: true,
get defaultValue() { defaultValue: [],
return selectedNamespaces.get() ?? []; // initial namespaces coming from URL or local-storage (default)
}
}); });
export function getDummyNamespace(name: string) { export function getDummyNamespace(name: string) {

View File

@ -3,7 +3,7 @@ import { autobind, createStorage, StorageHelper } from "../../utils";
import { dockStore, TabId } from "./dock.store"; import { dockStore, TabId } from "./dock.store";
interface Options<T = any> { interface Options<T = any> {
storageName?: string; // persistent key storageName?: string; // persistence key
storageSerializer?: (data: T) => Partial<T>; // allow to customize data before saving storageSerializer?: (data: T) => Partial<T>; // allow to customize data before saving
} }