-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(book): wrote docs on state thawing
- Loading branch information
1 parent
ce07134
commit 2d67a40
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Freezing to IndexedDB | ||
|
||
One of the most common places to store frozen state is inside the browser, which can be done with Perseus' inbuilt `IdbFrozenStateStore` system, which uses [IndexedDB]() to store as many frozen states as you want, allowing you to revert to not just the previous state, but the one before that, the one before that, etc. | ||
|
||
To use this system, you'll need to enable the `idb-freezing` feature flag, and then you can use the system as per the below example. | ||
|
||
*Further documentation on this system will be written after it's been built, which it will be by v0.3.3. Sorry for the wait!* |