mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
Team create/delete/update can change which teams belong to an organization (via teamCreateCall, teamDeleteCall, and teamUpdateCall when organization_id changes). Without invalidating the React Query cache for organizations, the org info page's teams list and any useOrganizations() consumer (e.g. the team edit form's organization dropdown) stay stale until a hard reload. Export organizationKeys from useOrganizations and invalidate organizationKeys.all after each successful team mutation, matching the pattern used in hooks/projects, hooks/budgets, and hooks/accessGroups. |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| contexts | ||
| data | ||
| hooks | ||
| lib | ||
| utils | ||
| types.ts | ||