| name | client-resource |
| description | How to use @owlmeans/client-resource — client-side resource caching layer over @owlmeans/resource for in-memory or persistent client storage. Auto-invoked when importing client resource primitives. |
| user-invocable | false |
@owlmeans/client-resource
Layer: Client
Install: "@owlmeans/client-resource": "^0.1.11" in dependencies
Key Exports
| Export | Description |
|---|
makeClientResource<T>() | Factory for an in-memory client resource |
ClientResource<T> types | Resource interface |
| Constants | Default cache aliases |
Usage
import { makeClientResource } from '@owlmeans/client-resource'
context.registerResource(makeClientResource<Project>('projects'))
Depends On
@owlmeans/resource, @owlmeans/client-context