Skip to content
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

Conversation

alvarosabu
Copy link
Member

@alvarosabu alvarosabu commented Feb 2, 2024

This hopefully closes #83 #41 . Thanks @userquin for the fix 🙏🏻 it does work as expected

@alvarosabu alvarosabu added the bug Something isn't working label Feb 2, 2024
@alvarosabu alvarosabu self-assigned this Feb 2, 2024
@alvarosabu alvarosabu linked an issue Feb 2, 2024 that may be closed by this pull request
5 tasks
// import { TresCanvas } from '#components'
// import { onMounted, useRenderLoop } from '#imports'

const { resume } = useRenderLoop()
Copy link
Member

@userquin userquin Feb 6, 2024

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 (?)

Copy link
Member Author

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 Show resolved Hide resolved
src/module.ts Outdated
Comment on lines 107 to 112
else {
await addComponent({
name: 'TresCanvas',
filePath: resolver.resolve('./runtime/TresCanvas.client.vue'),
})
}
Copy link
Member

@danielroe danielroe Feb 7, 2024

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?

Copy link
Member

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?

Copy link
Member

@danielroe danielroe Feb 7, 2024

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@alvarosabu alvarosabu merged commit faca608 into main Feb 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants