Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

⚛️ Directives don't work if they are used inside of a component #73

@luisherranz

Description

@luisherranz

Because we're extracting the wp- attributes only on the server-side rendered HTML, if a component contains a directive, it won't work:

const View = ({ ... }) => (
  <div {...}>
    <span wp-some-directive>...</span>
  </div>
);

I think we need to move everything to options.vnode. I'll open a PR to investigate.

Metadata

Metadata

Assignees

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