Skip to content

Commit bd8d05a

Browse files
committed
Added a section to README.md about value serialization
1 parent 55986c2 commit bd8d05a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Persisting to another data source using customized functions can also be done. S
1616

1717
An observable extended with knockout.observableStorage will use the initial value passed into the observable function as the default value. If the data store already has a value (i.e., the value is not undefined), the initial value will be loaded from the data store. If the value in the data store is undefined, the value passed into the observable function will be made the initial value and persisted to the data store.
1818

19+
## Value Serialization
20+
21+
Values in an observable are serialized to JSON when they are saved and deserialized from JSON when they are retrieved. This allows us to store complex data.
22+
1923
## How to Use It
2024

2125
This extender uses the "persist" keyword, which is followed up by the options for persisting the observable. See the examples below.

0 commit comments

Comments
 (0)