Namespace The.Web.Preferences
Classes
- BrowserPreferenceMirror
Mirrors preferences to a browser cookie via JS interop. The synchronous read only works under WASM; in InteractiveServer, cookies are read from the HTTP request by a subclass registered in Instagile.Web.
- MirroredPreferenceStore
Stores preferences in a canonical async store and mirrors them to an ambient sync store. Notifies on save so that consumers can update without rereading the mirror.
- PreferenceCookie
Wire format for the IPreferenceMirror: packed, compressed form of PreferenceDictionary, keeping the size minimal so that hopefully it can fit in a cookie value.
Interfaces
- IPreferenceMirror
An ambient copy of what will probably be the user's preferences, in PreferenceCookie format. Readable synchronously for use in first render; refreshed when preferences are loaded or flushed.