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

Class not merged in rendering stage #671

Open
Triloworld opened this issue Jul 27, 2022 · 1 comment
Open

Class not merged in rendering stage #671

Triloworld opened this issue Jul 27, 2022 · 1 comment
Labels
bug Something isn't working nuxt 3 Nuxt 3 Support vue-lazy-hydration

Comments

@Triloworld
Copy link
Contributor

We have error and we investigate to have option for using this module.
Consider this scenario:

  • We added properly module
  • Add lazy hydration importing in components
  • Our component initiation:
      <section_two_column
        class="px-[10%]"
        :full-img="true"
      />
  • Our component xyz.vue with name is section_two_column start definition (part):
<template>
  <section
    v-bind="$attrs"
    class="bg-white relative w-full pb-8 tablet-wide:pb-14 pt-10 tablet-wide:pt-16 text-gray-dark"
  >
...
 </section>
</template>
  • Our generation is completed and no error
  • We see that px-[10%] aren't added to code on server side. Hydration if done then it will show up.
    So from pages to components there aren't inject of class. We have and don't have v-bind so it won't help either.
    We have initiation with dynamic class but that won't work either too.
    Issue only show with this module - we use <LazyHydrate> from vue-lazy-hydration before apply and was working

I propose to check maybe here:
https://github.com/GrabarzUndPartner/nuxt-speedkit/blob/b26fb8c6e3c29ed400cd8b940bfb445527e10b65/lib/hydrate.js#L14-L22

@Triloworld
Copy link
Contributor Author

Triloworld commented Jul 27, 2022

This is same error like here with pull request: maoberlehner/vue-lazy-hydration#50
Patch is needed

@ThornWalli ThornWalli added bug Something isn't working vue-lazy-hydration labels Oct 17, 2022
@StephanGerbeth StephanGerbeth added the nuxt 3 Nuxt 3 Support label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nuxt 3 Nuxt 3 Support vue-lazy-hydration
Projects
None yet
Development

No branches or pull requests

3 participants