Skip to content

fix(changelog): Use useActionState for server actions #11436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

chargome
Copy link
Member

This pr adds useActionState for all changelog server actions.
Although the payloads are currently not used (they were not used before either), this fixes the type errors we got from passing these actions directly to the forms.

@chargome chargome self-assigned this Sep 25, 2024
Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 3:02pm
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 3:02pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 3:02pm

Copy link

codecov bot commented Sep 25, 2024

Bundle Report

Changes will decrease total bundle size by 15 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 7.45MB 6 bytes (-0.0%) ⬇️
sentry-docs-edge-server-array-push 257.07kB 3 bytes (-0.0%) ⬇️
sentry-docs-client-array-push 6.42MB 6 bytes (-0.0%) ⬇️

@chargome chargome requested review from mydea and Lms24 September 25, 2024 14:48
@chargome chargome merged commit f8bc87f into master Sep 25, 2024
12 checks passed
@chargome chargome deleted the cg/fix-changelog-server-actions branch September 25, 2024 15:20
@kahest kahest mentioned this pull request Sep 25, 2024
6 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants