Skip to content

Revalidate disk size when source changes - #3395

Merged
david-crespo merged 1 commit into
mainfrom
disk-recheck
Oct 1, 2026
Merged

david-crespo merged 1 commit into
mainfrom
disk-recheck

Conversation

@david-crespo

@david-crespo david-crespo commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Like #3394, pulled out of my work on #3391.

Without this, if you submit the disk create form with a size too small for the selected source, and then switch to a smaller source that fits, the "Must be as large as selected…" error stays up until you edit the size again. Adding deps="size" to both source pickers revalidates the size whenever the source changes. deps is confusingly named because it makes it sounds like source depends on size, but the docs for deps say:

When this field's own validation runs (e.g. via its registered onChange/onBlur), the fields listed in deps will also be re-validated.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
console Ready Ready Preview Oct 1, 2026 11:01pm UTC

Request Review

@david-crespo
david-crespo merged commit d0c0cc4 into main Oct 1, 2026
7 checks passed
@david-crespo
david-crespo deleted the disk-recheck branch October 1, 2026 23:44

This branch was successfully deployed

1 active deployment
Preview — 3b05a1aa Deployed Oct 1, 2026 by vercel[bot]
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.

1 participant