Get store impact chain
nanostores_store_impactAnalyze downstream dependencies to trace what recomputes when a specific Nanostores store changes, showing computed stores and subscribers ordered by distance.
Instructions
When you need to trace what recomputes if X changes, call this once — not nanostores_store_summary on each downstream store. Returns the full ordered downstream chain in a single response: computed stores that depend on X at hop 1, their dependents at hop 2, and so on. Subscribers appear at the same hop as the store they react to. Use nanostores_store_subgraph instead when you also need upstream ancestors (BFS in both directions). Example: {name: "$isLoggedIn"} returns every computed store and subscriber that recomputes when $isLoggedIn changes, ordered by distance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | No | Exact store id. If provided, takes priority. | |
| name | No | Store name. Used if storeId is not provided. | |
| projectRoot | No | Project root path (uses default if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceStoreId | Yes | ||
| sourceName | No | ||
| hops | Yes | ||
| summary | Yes |