Using the useModal composable with a custom component and custom props is working fine since last update 0.40.9. However, when passing a function in a custom prop, the type is not correct and causes a runtime error. Instead of a function type itself, the prop is typed as the function's return type.
On custom prop with function type, i.e.:
custom_getter_prop: () => getItems(),
It seems to be passed as the function return type instead of a function type.
Originally posted by @memen45 in #2919 (comment)