Skip to content

Local Storage Manager — Reference

Reference · Advanced · App Connect

Persist JSON-compatible browser state for the current origin.

Persist JSON-compatible browser state for the current origin.

  • An App Connect page with the State Management component included. Use a dedicated test key for experiments.

Persist JSON-compatible browser state for the current origin.

Part Meaning
IDThe component name, for example localState.
Define Local Storage ItemsDeclares names/types for the editor’s data/action pickers. Defining an item does not write its value.
ValuesUse localState.data.name, such as localState.data.wappler_docs_preference. The data property contains the stored values.
Set: Name / ValueJSON-serializes a value into a storage key beginning dmxState-. Strings, numbers, booleans, arrays and plain objects can be represented. Object prototypes and functions do not survive JSON storage.
DataAdditional controls may reflect the selected item schema when configuring an object value. They still build the value passed to Set.
RemoveRemoves the one named dmxState- key and refreshes this component’s data.
Remove AllRemoves every local-storage key starting dmxState- for this origin. It is not limited by the component ID and does not clear unrelated storage keys.

Use localState.set(‘wappler_docs_preference’, ‘compact’), then bind a label to localState.data.wappler_docs_preference. Reload the page and confirm the value remains. Remove just wappler_docs_preference after testing rather than clearing other settings.

Local storage is browser/origin-scoped convenience state, not a database or synchronization service. Components on the same origin share the dmxState- key space. Browser policy, user clearing and storage failures can remove or block values; do not store authorization decisions or assume data survives indefinitely.

Compare URL, cookie, session and local state before choosing where application data belongs. Browser state never replaces server-side access checks.

You can use the correct data path, configure a value and verify the storage/removal scope.