Skip to content

Commit

Permalink
Use static string for query key
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranklin committed Dec 5, 2024
1 parent d61540f commit 8e72045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/src/hooks/features/useDeleteFeature.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useQueryClient } from 'react-query';
import { useDelete } from '@hazmapper/requests';
import { KEY_USE_FEATURES } from './useFeatures';

type DeleteFeatureParams = {
projectId: number;
Expand All @@ -15,7 +16,7 @@ export function useDeleteFeature() {
options: {
onSuccess: () => {
// invalidate *any* feature listing query
queryClient.invalidateQueries(['activeProjectFeatures']);
queryClient.invalidateQueries([KEY_USE_FEATURES]);
},
},
});
Expand Down

0 comments on commit 8e72045

Please sign in to comment.