Giter Club home page Giter Club logo

Comments (5)

teleskop150750 avatar teleskop150750 commented on June 26, 2024

@zernonia Look at my implementation

https://vue-primitives.netlify.app/?path=/story/components-accordion--single

https://github.com/morgenstern-ui/vue-primitives/blob/main/packages/vue-primitives/src/collapsible/CollapsibleContent.vue

from radix-vue.

Cry0nicS avatar Cry0nicS commented on June 26, 2024

Maybe relevant, as I didn't want to open another issue:

Same Accordion / Collapsible throws Hydration attribute mismatch when used with Nuxt and SSR (inclusive on the docs, linked in the initial post).

Hydration attribute mismatch on <div ... id=​"radix-vue-collapsible-content-57">​…​</div>​
  - rendered on server: id="radix-vue-collapsible-content-57"
  - expected on client: id="radix-vue-collapsible-content-8"

I'd assume useId() is required.

from radix-vue.

zernonia avatar zernonia commented on June 26, 2024

Thanks @teleskop150750 .. however I don't think that fixes the issue.

@Cry0nicS it's not hydration issue. If you encountered hydration issue do check out #577

from radix-vue.

teleskop150750 avatar teleskop150750 commented on June 26, 2024

Thanks @teleskop150750 .. however I don't think that fixes the issue.

@Cry0nicS it's not hydration issue. If you encountered hydration issue do check out #577

as far as I understand, the problem is in this code. First, the component is rendered with empty content. Then the parent component receives a link to "Presence". And only after that, if "present === true" the internal content is rendered

Link

from radix-vue.

teleskop150750 avatar teleskop150750 commented on June 26, 2024

I get the initial value synchronously

Parent
usePresence

from radix-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.