aikmandean / st

Based on tate-state from June 12th, 2022

Home Page:https://aikmandean.github.io/hwyblvd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing a typed function to define prop should not return a composable

aikmandean opened this issue · comments

When you try to define a callback that would need a few props, you aren't able to require it as a dependency.

const OnSubscribeCallback = defineProp(fn(props => {}), { SubscriberId, ChannelId })

OnSubscribeCallback is Composable because it was created using fn(). To fix this define prop should know to strip composability since that is the user's intent.