Reference > Admin > Local Storage
Local Storage
Reference for webiny/admin/local-storage
WHAT YOU'LL LEARN
- What is exported from
webiny/admin/local-storage? - How to import and use each exported item?
Overview
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
LocalStorage
Constant — imported from webiny/admin/local-storage
Hooks
useLocalStorage
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
Function — imported from webiny/admin/local-storage
useLocalStorageValues
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.