Skip to content

gql-api-keys: only setState once when duplicating key#3792

Merged
mastercactapus merged 1 commit into
masterfrom
prevent-data-revert-on-dup-key
Apr 9, 2024
Merged

gql-api-keys: only setState once when duplicating key#3792
mastercactapus merged 1 commit into
masterfrom
prevent-data-revert-on-dup-key

Conversation

@mastercactapus
Copy link
Copy Markdown
Member

@mastercactapus mastercactapus commented Apr 3, 2024

Description:
Fixes an issue where fields on the GQL API key create dialog would reset with each poll.

The new approach leverages the Suspense behavior by setting the initial state/value directly, rather than relying on a useEffect handler.

Closes #3791

@github-actions github-actions Bot added the size/s label Apr 3, 2024
Copy link
Copy Markdown
Contributor

@Lanithane Lanithane left a comment

Choose a reason for hiding this comment

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

Functionally validated. Ty!

@mastercactapus mastercactapus merged commit a2d2c69 into master Apr 9, 2024
@mastercactapus mastercactapus deleted the prevent-data-revert-on-dup-key branch April 9, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API key duplicate resetting schema on poll

3 participants