Skip to content

Commit

Permalink
Add flush to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nevir committed Apr 4, 2017
1 parent bae8d84 commit 2b5229c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ persistStore(store, config, callback).purge()
- pauses persistence
- `resume()`
- resumes persistence
- `flush()`
- Writes the current state of the store out to storage.

#### `autoRehydrate(config)`
- This is a store enhancer that will automatically shallow merge the persisted state for each key. Additionally it queues any actions that are dispatched before rehydration is complete, and fires them after rehydration is finished.
Expand Down
3 changes: 2 additions & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [getStoredState(config, callback)](#getstoredstateconfig-callback) -> Promise -> State
- [createPersistor(store, config)](#createpersistorstore-config) -> Persistor
- [createTransform(in, out, config)](#createtransformin-out-config) -> Transform
- [purgeStoredState(config, keys)](#purgestoredstateconfig-keys) -> Promise -> void
- [purgeStoredState(config, keys)](#purgestoredstateconfig-keys) -> Promise -> void

**objects**
- [config](#config-)
Expand Down Expand Up @@ -83,6 +83,7 @@ persistor.rehydrate(incomingState, {serial: true})
persistor.purge()
persistor.pause()
persistor.resume()
persistor.flush()
```

#### transform {}
Expand Down

0 comments on commit 2b5229c

Please sign in to comment.