diff --git a/page/state.html b/page/state.html
index ea0c02c..086bb27 100644
--- a/page/state.html
+++ b/page/state.html
@@ -97,13 +97,6 @@
The StorageState
subclass of State
implements the same API but is backed by a
Storage
object.
- This comes with the disadvantage that all values must be stored in a - serialised form, which won't work for all data and will break identity. - Specifically, all values are converted to JSON strings for storage. -
-
By default, StorageState
uses the
window.localStorage
object, but you can change this by
@@ -132,6 +125,25 @@
console.log(sessionStorage.value) // udnefined
console.log(sessionStorage.greeting) // "Hello, World!"
+
+
+ Using a storage object comes with the disadvantage that all values must + be stored in a serialised form, which won't work for all data and will + break identity. Specifically, all values are converted to JSON strings + for storage. +
+ +