---
url: "https://vueda.dev/v3/reference/api/js/stores/storeModelInfo/functions/storeModelInfo.md"
title: "storeModelInfo"
---

# storeModelInfo

## Overview

A store for model information.

## Signature

`storeModelInfo(pinia, hot)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-pinia">pinia</span> | `Pinia` | no | Pinia instance to retrieve the store |
| <span id="param-hot">hot</span> | `StoreGeneric` | no | dev only hot module replacement |

### Returns

`Store`

## Properties

### $id {#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 {#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 {#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 {#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 {#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](/v3/reference/api/js/stores/storeModelInfo/methods/clearAuthScoped.md) - Drops everything this store caches, because it is all permission-filtered for the previously authenticated user.
- [fetchModelInfo](/v3/reference/api/js/stores/storeModelInfo/methods/fetchModelInfo.md) - Fetches the model info for an app and model, and caches it in `infos`.

## Source

`client/lib/stores/storeModelInfo.js:282`
