Moved here from formkit/formkit#1214
Reproduction
https://github.com/sebj54/nuxt-debug-formkit
Describe the bug
I noticed a strange bug when using Nuxt with Options API. When the FormKit component is in the template (commented or not), the setup function is never called.
I made a reproduction where you will find three components (each one is a page). These components should display a log in the console for each lifecycle event: setup, created (if using Options API) and mounted.
Components list:
ko.vue: The component with the issue. You can try to uncomment the FormKit component but the setup function won't be called anyway. It is only called when you remove the comment/component.
ok.vue: Same component than before but the difference is the component commented
ok-composition.vue: Same component than ko.vue but Composition API is used here. There is also the FormKit component commented but the setup log is shown
Let me know if I can help in any way!
Environment
• OS: MacOS
• Browser : Firefox
• Version: 122
Moved here from formkit/formkit#1214
Reproduction
https://github.com/sebj54/nuxt-debug-formkit
Describe the bug
I noticed a strange bug when using Nuxt with Options API. When the
FormKitcomponent is in the template (commented or not), thesetupfunction is never called.I made a reproduction where you will find three components (each one is a page). These components should display a log in the console for each lifecycle event: setup, created (if using Options API) and mounted.
Components list:
ko.vue: The component with the issue. You can try to uncomment theFormKitcomponent but thesetupfunction won't be called anyway. It is only called when you remove the comment/component.ok.vue: Same component than before but the difference is the component commentedok-composition.vue: Same component thanko.vuebut Composition API is used here. There is also theFormKitcomponent commented but the setup log is shownLet me know if I can help in any way!
Environment
• OS: MacOS
• Browser : Firefox
• Version: 122