Webiny-js webiny-admin-local-storage-catalog
install
source · Clone the upstream repo
git clone https://github.com/webiny/webiny-js
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/webiny/webiny-js "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/user-skills/generated/admin/local-storage" ~/.claude/skills/webiny-webiny-js-webiny-admin-local-storage-catalog && rm -rf "$T"
manifest:
skills/user-skills/generated/admin/local-storage/SKILL.mdsource content
admin/local-storage
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>";
Abstractions
Name:
LocalStorage
Import: import { LocalStorage } from "webiny/admin/local-storage"
Source: @webiny/app/features/localStorage/abstractions.ts
Name:
useLocalStorage
Import: import { useLocalStorage } from "webiny/admin/local-storage"
Source: @webiny/app/presentation/localStorage/index.ts
Description: Returns the LocalStorage instance from DI.
Useful when you want to call service methods imperatively inside components.
Name:
useLocalStorageValue
Import: import { useLocalStorageValue } from "webiny/admin/local-storage"
Source: @webiny/app/presentation/localStorage/index.ts
Name:
useLocalStorageValues
Import: import { useLocalStorageValues } from "webiny/admin/local-storage"
Source: @webiny/app/presentation/localStorage/index.ts
Description: Observes multiple keys in LocalStorage and returns an object of { key: value }.
Re-renders when any of the observed keys change.