Skip to content

Commit b0fa4f8

Browse files
committed
[docs] Fix very dated concept
1 parent 3158eaa commit b0fa4f8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/types/docs/persisters.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,11 @@
638638
* The load method gets persisted data from storage, and loads it into the
639639
* Store with which the Persister is associated, once.
640640
*
641-
* The optional parameter allows you to specify what the initial Tables object
642-
* for the Store will be if there is nothing currently persisted. Using this
643-
* instead of the `initialTables` parameter in the regular createStore
644-
* function allows you to easily instantiate a Store whether it's loading from
645-
* previously persisted storage or being run for the first time.
641+
* The optional parameters allow you to specify what the initial content for
642+
* the Store will be if there is nothing currently persisted or if the load
643+
* fails (for example when the Persister is remote and the environment is
644+
* offline). This allows you to fallback or instantiate a Store whether it's
645+
* loading from previously persisted storage or being run for the first time.
646646
*
647647
* This method is asynchronous because the persisted data may be on a remote
648648
* machine or a filesystem. Even for those storage types that are synchronous
@@ -699,11 +699,11 @@
699699
* into the Store with which the Persister is associated, once, and then
700700
* continuously.
701701
*
702-
* The optional parameter allows you to specify what the initial Tables object
703-
* for the Store will be if there is nothing at first persisted. Using this
704-
* instead of the `initialTables` parameter in the regular createStore
705-
* function allows you to easily instantiate a Store whether it's loading from
706-
* previously persisted storage or being run for the first time.
702+
* The optional parameters allow you to specify what the initial content for
703+
* the Store will be if there is nothing currently persisted or if the load
704+
* fails (for example when the Persister is remote and the environment is
705+
* offline). This allows you to fallback or instantiate a Store whether it's
706+
* loading from previously persisted storage or being run for the first time.
707707
*
708708
* This method first runs a single call to the load method to ensure the data
709709
* is in sync with the persisted storage. It then continues to watch for

0 commit comments

Comments
 (0)