storeModelInfo
Overview
A store for model information.
Signature
storeModelInfo(pinia, hot)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pinia | Pinia | no | Pinia instance to retrieve the store |
| hot | StoreGeneric | no | dev only hot module replacement |
Returns
Store
Properties
$id
Id of the store. Used by map helpers.
Type: "modelInfo"
Source: node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.43_typescript@5.9.3_/node_modules/pinia/dist/pinia.d.ts:654
authScopeGeneration
Incremented by clearAuthScoped. Fetches capture it before issuing and discard their response if it changed while the request was in flight.
Type: number
Source: client/lib/stores/storeModelInfo.js:311
errors
The error from each failed fetchModelInfo request, keyed by app and model dot name. Later calls for that model reject with this error instead of asking the server again.
Type: object
Source: client/lib/stores/storeModelInfo.js:304
infos
Fetched model info, keyed by app and model dot name. Field names and filter names keep the server's spelling; all other keys are camelCase.
Type: object
Source: client/lib/stores/storeModelInfo.js:290
promises
The in-flight fetchModelInfo requests, keyed by app and model dot name. A request removes its entry when it settles.
Type: object
Source: client/lib/stores/storeModelInfo.js:297
Methods
- clearAuthScoped - Drops everything this store caches, because it is all permission-filtered for the previously authenticated user.
- fetchModelInfo - Fetches the model info for an app and model, and caches it in
infos.
Source
client/lib/stores/storeModelInfo.js:282