Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 8081e69

Browse files
Optimize resolving from options
1 parent d527191 commit 8081e69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ export default function(options, storage, key) {
5252
throw new Error("Invalid storage instance given");
5353
}
5454

55-
const fetchSavedState = () =>
56-
shvl.get(options, "getState", getState)(key, storage);
55+
const fetchSavedState = () => (options.getState || getState)(key, storage);
5756

5857
let savedState;
5958

0 commit comments

Comments
 (0)