Skip to content

Commit

Permalink
fix: mutation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcgrath13 committed Jan 16, 2025
1 parent 18c0adc commit 0bd6d9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containers/ecr-viewer/src/app/components/BaseFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export const useQueryParam = () => {
const curSearchParams = copyParams(searchParams);
curSearchParams.set("page", "1");

// Set a query param with a specific value (mutating)
// Set a query param with a specific value
const setQueryParam = (key: string, value: string) => {
curSearchParams.set(key, value);
return;
};

// Delete a query param or a specific query param value (mutating)
// Delete a query param or a specific query param value
const deleteQueryParam = (key: string) => {
curSearchParams.delete(key);
return;
Expand All @@ -63,7 +63,7 @@ export const useQueryParam = () => {
}
};

// Update a specific query param (set or delete if default) (non-mutating)
// Update a specific query param (set or delete if default)
const updateQueryParam = (
key: string,
value: string | { [key: string]: boolean },
Expand Down

0 comments on commit 0bd6d9f

Please sign in to comment.