You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to await a function inside onResolved in a I get
Type '(appointments: MyCustomType) => Promise' is not assignable to type '(value: MyCustomType) => JSXOutput'.
Type 'Promise' is not assignable to type 'JSXOutput'.ts(2322)
core.d.ts(2280, 5): The expected type comes from property 'onResolved' which is declared here on type 'IntrinsicAttributes & ResourceProps'
But even though typescript complains, the code works on my end. So I guess it's just an easy fix on the ts side.
Which component is affected?
Qwik Runtime
Describe the bug
Trying to await a function inside
onResolved
in a I getBut even though typescript complains, the code works on my end. So I guess it's just an easy fix on the ts side.
Reproduction
https://stackblitz.com/edit/github-b7kqvv?file=src%2Froutes%2Findex.tsx
Steps to reproduce
Open stackblitz repro, maybe edit the index.tsx file (add a space anywhere to get the ts highlighter).
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: