WHAT YOU'LL LEARN
  • What is exported from webiny/admin/local-storage?
  • How to import and use each exported item?

Overview
anchor

This page documents everything exported from webiny/admin/local-storage. Import any of the items below directly from this path in your Webiny extensions.

Components
anchor

LocalStorage
anchor

Constant — imported from webiny/admin/local-storage

Hooks
anchor

useLocalStorage
anchor

Function — imported from webiny/admin/local-storage

Returns the LocalStorage instance from DI. Useful when you want to call service methods imperatively inside components.

useLocalStorageValue
anchor

Function — imported from webiny/admin/local-storage

useLocalStorageValues
anchor

Function — imported from webiny/admin/local-storage

Observes multiple keys in LocalStorage and returns an object of { key: value }. Re-renders when any of the observed keys change.