target / goalert

Open source on-call scheduling, automated escalations, and notifications so you never miss a critical alert
https://goalert.me
Apache License 2.0
2.22k stars 240 forks source link

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

Closed mastercactapus closed 5 months ago

mastercactapus commented 6 months ago

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