Skip to content

Commit cfb9595

Browse files
committed
namespace local storage keys
1 parent 8688819 commit cfb9595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/s2-docs/src/useLocalStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Store {
1212
subscriptions: Set<() => void>;
1313

1414
constructor(key: string, defaultValue: string) {
15-
this.key = key;
15+
this.key = 's2.' + key;
1616
this.defaultValue = defaultValue;
1717
this.subscriptions = new Set();
1818
}

0 commit comments

Comments
 (0)