-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
N/a
Reproduction
N/a
Describe the bug
When using a prefixStorage
object, the aliases ( just keys
, get
, set
, etc)keys
still point to the original storage object.
Lines 474 to 481 in 1e3082d
// Aliases | |
keys: (base, opts = {}) => storage.getKeys(base, opts), | |
get: (key: string, opts = {}) => storage.getItem(key, opts), | |
set: (key: string, value: T, opts = {}) => | |
storage.setItem(key, value, opts), | |
has: (key: string, opts = {}) => storage.hasItem(key, opts), | |
del: (key: string, opts = {}) => storage.removeItem(key, opts), | |
remove: (key: string, opts = {}) => storage.removeItem(key, opts), |
prefixStorage
copies the object, but doesn't replace these alias functions.
Additional context
No response
Logs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working