|
638 | 638 | * The load method gets persisted data from storage, and loads it into the |
639 | 639 | * Store with which the Persister is associated, once. |
640 | 640 | * |
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. |
646 | 646 | * |
647 | 647 | * This method is asynchronous because the persisted data may be on a remote |
648 | 648 | * machine or a filesystem. Even for those storage types that are synchronous |
|
699 | 699 | * into the Store with which the Persister is associated, once, and then |
700 | 700 | * continuously. |
701 | 701 | * |
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. |
707 | 707 | * |
708 | 708 | * This method first runs a single call to the load method to ensure the data |
709 | 709 | * is in sync with the persisted storage. It then continues to watch for |
|
0 commit comments