-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 83 trescanvas component is missing template or render function after 3100 #84
fix: 83 trescanvas component is missing template or render function after 3100 #84
Conversation
// import { TresCanvas } from '#components' | ||
// import { onMounted, useRenderLoop } from '#imports' | ||
|
||
const { resume } = useRenderLoop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be moved inside the onMounted
hook (?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be removed since is a leftover trying to fix the issue you solved.
src/module.ts
Outdated
else { | ||
await addComponent({ | ||
name: 'TresCanvas', | ||
filePath: resolver.resolve('./runtime/TresCanvas.client.vue'), | ||
}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this if/else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why registering the server component without ssr enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not do anything in that case, but it will decrease the need for complexity in the module.
Note that addComponent
is synchronous - no need to await it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This hopefully closes #83 #41 . Thanks @userquin for the fix 🙏🏻 it does work as expected