Skip to content

fix: avoid redundant gadget name save operation - #75

Open
SinghaAnirban005 wants to merge 2 commits into
inspektor-gadget:mainfrom
SinghaAnirban005:fix/ls
Open

fix: avoid redundant gadget name save operation#75
SinghaAnirban005 wants to merge 2 commits into
inspektor-gadget:mainfrom
SinghaAnirban005:fix/ls

Conversation

@SinghaAnirban005

Copy link
Copy Markdown
Contributor

Avoid unnecessary localstorage update when saving unchanged gadget name

Avoid unnecessary local storage updates by checking if the edited gadget
name differs from the existing name before saving.

fixes #74

How to use

Try saving the unchanged gadget name

Videos

Screencast.from.2026-03-23.02-49-51.webm

@ashu8912 ashu8912 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, just a small comment

Comment thread src/common/GadgetDescription/index.tsx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary localStorage update when saving unchanged gadget name

2 participants