We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1385e4a commit 5929f33Copy full SHA for 5929f33
packages/runtime-vapor/src/component.ts
@@ -972,8 +972,9 @@ function handleSetupResult(
972
devRender(instance)
973
}
974
} else {
975
- // component has a render function but no setup function
976
- // (typically components with only a template and no state)
+ // component has a render function with either:
+ // - no setup function (components with only a template)
977
+ // - setup returning non-block state for use in render
978
// support setup fn and render fn co-usage for defineComponent expose
979
if (!isBlock(setupResult) && component.render) {
980
instance.setupState = setupResult
0 commit comments