What problem does it solve?
Developers working in the Webiny admin app often need to persist UI state in browser localStorage but must locate the correct abstraction, hook, and import path across the codebase. This Skill provides a catalog of the four localStorage abstractions so you can pick the right one and import it correctly.
Core Features & Use Cases
- Abstraction Catalog: Lists LocalStorage, useLocalStorage, useLocalStorageValue, and useLocalStorageValues with exact import statements and source file locations.
- Reactive Hooks: useLocalStorageValue and useLocalStorageValues observe storage keys and re-render components when values change.
- DI Access: useLocalStorage returns the LocalStorage instance from dependency injection for imperative service calls inside components.
- Use Case: When building a Webiny admin extension that remembers a user's panel collapse state, look up useLocalStorageValue, read its source file for the exact interface, and import it from "webiny/admin/local-storage".
Quick Start
Ask the AI to show you which Webiny localStorage hook to use for observing a storage key in a React component and provide its import statement.