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:
parent
55fa8bd743
commit
779a8600b0
@ -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) {
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user