mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
fix(ui): add missing cache invalidation for React Query
- Add cache invalidation to useBoardPersistence after create/update/delete - Add useAutoModeQueryInvalidation to board-view for WebSocket events - Add cache invalidation to github-issues-view after converting issue to task - Add cache invalidation to analysis-view after generating features - Fix UI not updating when features are added, updated, or completed Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -143,7 +143,13 @@ export function useGitHubValidationQueryInvalidation(projectPath: string | undef
|
||||
if (!projectPath) return;
|
||||
|
||||
const api = getElectronAPI();
|
||||
const unsubscribe = api.github?.onValidationEvent((event: IssueValidationEvent) => {
|
||||
|
||||
// Check if GitHub API is available before subscribing
|
||||
if (!api.github?.onValidationEvent) {
|
||||
return;
|
||||
}
|
||||
|
||||
const unsubscribe = api.github.onValidationEvent((event: IssueValidationEvent) => {
|
||||
if (event.type === 'validation_complete' || event.type === 'validation_error') {
|
||||
// Invalidate all validations for this project
|
||||
queryClient.invalidateQueries({
|
||||
|
||||
Reference in New Issue
Block a user