From 0bd6d9f913bc71bd6facd1abe8687bdbf1fcb700 Mon Sep 17 00:00:00 2001 From: Mary McGrath Date: Thu, 16 Jan 2025 10:33:59 -0500 Subject: [PATCH] fix: mutation comments --- containers/ecr-viewer/src/app/components/BaseFilter.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containers/ecr-viewer/src/app/components/BaseFilter.tsx b/containers/ecr-viewer/src/app/components/BaseFilter.tsx index 4fd449f47..23c23236a 100644 --- a/containers/ecr-viewer/src/app/components/BaseFilter.tsx +++ b/containers/ecr-viewer/src/app/components/BaseFilter.tsx @@ -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; @@ -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 },