Skip to content

Stop hydration of specific nested components? #884

@silouanwright

Description

@silouanwright

So I'm using react-rails and I'd like to render a component that contains a ton of other components... but I don't want all of it to hydrate. Essentially, I don't want to have to do this:

= react_component('components/Square', {  }, prerender: true)
= react_component('components/Ad', {  }, prerender: false)
= react_component('components/Square', {  }, prerender: true)
= react_component('components/Ad, {  }, prerender: false)

I'd like to render just a full page in my haml files:

= react_component('pages/Home', { }, prerender: true)

But when I'm rendering the specific Ad components in there, stop the hydration on those. Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions