TypeScript error when forwarding ctx.attrs to child component via h() #14507
Unanswered
prince-kunwar-xcelore
asked this question in
Help/Questions
Replies: 1 comment
-
|
@shubph The issue is that return h(Child, ctx.attrs as any);
// or simpler in setup:
return () => <Child {...(ctx.attrs as any)} />Since you are disabling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m running into a TypeScript issue when trying to forward
ctx.attrsfrom a wrapper component into a typed child component usingh().Reproduction
I'm not sure how I would resolve this, any ideas?
Beta Was this translation helpful? Give feedback.
All reactions