(key: ProviderKey)
| 132 | }); |
| 133 | |
| 134 | export const providerItemsAtom = (key: ProviderKey) => |
| 135 | ExecutorApiClient.query("providers", "items", { |
| 136 | params: { key }, |
| 137 | // Long retention on purpose: external-provider listings (1Password) are |
| 138 | // slow, so pickers render the last-known list instantly and revalidate in |
| 139 | // the background on mount instead of flashing a loading state each open. |
| 140 | timeToLive: "10 minutes", |
| 141 | reactivityKeys: [ReactivityKey.providers], |
| 142 | }); |
| 143 | |
| 144 | // --------------------------------------------------------------------------- |
| 145 | // Policies — owner-scoped. |
no outgoing calls
no test coverage detected