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

Commit6da8094

Browse files
committed
(docs): re-word storage section for clarity
1 parenta2f22a6 commit6da8094

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ persist('some', someStore, {
5353
-**key***string* The key of your storage engine that you want to persist to.
5454
-**store***MST store* The store to be persisted.
5555
-**options***object* Additional configuration options.
56-
-**storage***[localForage](https://github.com/localForage/localForage) / AsyncStorage / localStorage*[localForage](https://github.com/localForage/localForage)-style storage API. localStorage for Web (default), AsyncStorage for React Native.
56+
-**storage***[localForage](https://github.com/localForage/localForage) / AsyncStorage / localStorage*
57+
Any Storage Engine that has a Promise-style API similar to[`localForage`](https://github.com/localForage/localForage).
58+
The default is`localStorage`, which has a built-in adaptor to make it support Promises.
59+
For React Native, one may configure`AsyncStorage` instead.
5760
-**jsonify***bool* Enables serialization as JSON (default:`true`).
5861
-**whitelist***Array\<string\>* Only these keys will be persisted (defaults to all keys).
5962
-**blacklist***Array\<string\>* These keys will not be persisted (defaults to all keys).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp