Install any skill in seconds. Free to start, no credit card required.
Get Started Free →admin/local-storage — 4 abstractions.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -67% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -65% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -76% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -54% | 0% |
import { Name } from "<importPath>";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.
Other measured skills in the registry, with their headline benchmark lift.