refactor: remove redundant = false defaults on boolean props (#9155)

## Summary

Remove redundant `= false` defaults from destructured `defineProps` on
boolean props, since Vue's [Boolean
casting](https://vuejs.org/guide/components/props.html#boolean-casting)
already defaults absent boolean props to `false`.

## Changes

- **What**: Remove 10 unnecessary `= false` default values across 8
components

## Review Focus

Vue compiles `defineProps<{ myBool?: boolean }>()` to `{ myBool: { type:
Boolean, required: false } }`. Boolean casting means absent boolean
props are already `false` — the explicit `= false` in JS destructuring
defaults never triggers.

Follow-up to #9150.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-9155-refactor-remove-redundant-false-defaults-on-boolean-props-3116d73d36508196af0bcba53257720a)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2026-03-04 16:59:05 -08:00
committed by GitHub
parent 0f8473db35
commit 80e31a27b1
8 changed files with 10 additions and 10 deletions

View File

@@ -305,7 +305,7 @@ interface Props {
loadingTier?: CheckoutTierKey | null
}
const { isLoading = false, loadingTier = null } = defineProps<Props>()
const { isLoading, loadingTier = null } = defineProps<Props>()
const emit = defineEmits<{
subscribe: [payload: { tierKey: CheckoutTierKey; billingCycle: BillingCycle }]