Skip to content

Local Manager (persistent settings)

Learn when Local Manager is the right persistence layer for Wappler UI state, and how to store settings that should survive reloads without going to the server.

This tour positions Local Manager as client-side persistence for everyday UX settings. You will look at what kinds of data belong here, how Wappler reads and writes those values in bindings and actions, and where the limits and security boundaries are.

You are not just learning that local storage persists data. You are learning the decision rule: use it for convenience settings and cached UI preferences that should remain on the same browser, but never for secrets or security-sensitive state.

Persistent settings
Theme, layout density, last selected view.
No server dependency
Stays in the browser until cleared.
Bigger than cookies
Typically larger capacity than cookies.
Survives browser restart
Good for preferences
Avoid sensitive data

Local Manager can store complex objects; they’re serialized/deserialized automatically.

important: Local storage is readable by client-side code. Don’t store secrets or tokens here.

Prefer non-sensitive data
Keep payloads reasonable
Provide a “reset settings” action

Bind UI to local values, and update them on events.

Use local.set(key, value) to persist a setting, and local.remove/removeAll to reset.

set(key, value)
Stores a persistent value.
remove(key)
Removes one setting.
removeAll()
Clears all stored settings.
Save user preference
Apply it via bindings
Offer reset button

Use local.key in expressions to set classes, default values, and visibility.

Bind form controls to local values and save changes with a single submit action.

Controls read local.*
Submit writes local.set(...)
UI updates instantly

Next, decide whether your state belongs in local/session/cookie or in the URL.

Pick a related tour to continue.