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(SSR): explicitly load KtNavbar as a component #931

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

Isokaeder
Copy link
Collaborator

A change in the template of NavBar.vue produced a very hard to trace down bug which caused the navbar to not render in the documentation. Although the source of this bug could not be made out, it seemed to have to do with how nuxt is resolving components. Adding an explicit import of KtNavbar in the file (and therefore not relying on the kotti-ui plugin for nuxt) fixes this.

As the file change that triggered this is very unrelated and it would be impossible to see this very unrelated effect in code review, a test was added that should at least stop the very same event to occur

@github-actions github-actions bot added the package:kotti-ui @3yourmind/kotti-ui label Jun 5, 2024
Copy link
Member

@FlorianWendelborn FlorianWendelborn left a comment

Choose a reason for hiding this comment

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

LGTM

A change in the template of NavBar.vue produced a very hard to trace down bug
which caused the navbar to not render in the documentation. Although the source
of this bug could not be made out, it seemed to have to do with how nuxt is
resolving components. Adding an explicit import of KtNavbar in the file (and
therefore not relying on the kotti-ui plugin for nuxt) fixes this.

As the file change that triggered this is very unrelated and it would be impossible
to see this very unrelated effect in code review, a test was added that should at
least stop the very same event to occur

Co-Authored-By: Florian Wendelborn <[email protected]>
@Isokaeder Isokaeder enabled auto-merge June 5, 2024 11:13
@Isokaeder Isokaeder merged commit dac749a into master Jun 5, 2024
9 checks passed
@Isokaeder Isokaeder deleted the fix-ssr-hiccup branch June 5, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:kotti-ui @3yourmind/kotti-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants