Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit349420d

Browse files
committed
(refactor): rename localStorageAdaptor to asyncLocalStorage
- because that makes a bit more sense / is more intuitive
1 parentf48f3db commit349420d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

‎persist.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import{onSnapshot,applySnapshot}from'mobx-state-tree'
22

3-
import*asLocalStoragefrom'./localStorageAdaptor.js'
3+
import*asAsyncLocalStoragefrom'./asyncLocalStorage.js'
44

55
exportconstpersist=(name,store,options={})=>{
66
let{storage, jsonify, whitelist, blacklist}=options
77

88
if(typeofwindow.localStorage!=='undefined'&&(!storage||storage===window.localStorage)){
9-
storage=LocalStorage
9+
storage=AsyncLocalStorage
1010
}
1111
if(!jsonify){jsonify=true}// default to true like mobx-persist
1212
constwhitelistDict=arrToDict(whitelist)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp