So I'm passing in components and properties dynamically along these lines (the idea is to 'stack-up' various components that I'll advance through)
Anyway, I've declared some properties on one of my 'stacked' components with their types as:
props: {
pk: String,
successUrl: String,
cancelUrl: String,
shippingAddressCollection: Boolean,
},
However, when it's created, the component complains that my shippingAddressCollection
does not have the expected type, which is:
Invalid prop: type check failed for prop "shippingAddressCollection". Expected Object, got Boolean with value false.
It's expecting an object instead of a boolean. How can this be?