> ## Documentation Index
> Fetch the complete documentation index at: https://committ.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# App Store

> Global foreground/background state for HydrationSync triggers.

# App Store

The useAppStore is a minimal global store that tracks the application's foreground/background state.

***

## State Shape

| Field    | Type    | Purpose                              |
| :------- | :------ | :----------------------------------- |
| isActive | boolean | Whether the app is in the foreground |

***

## Usage

The HydrationSync engine monitors this flag. When the app transitions from background to foreground (isActive flips to true), it triggers a delta sync to fetch any changes that occurred while the app was suspended.
