Skip to content

docs: document hydrate attribute and Shadow DOM limitation - #135

Open
SatvikMishra08 wants to merge 1 commit into
preactjs:masterfrom
SatvikMishra08:docs/115-hydrate-attr
Open

SatvikMishra08 wants to merge 1 commit into
preactjs:masterfrom
SatvikMishra08:docs/115-hydrate-attr

Conversation

@SatvikMishra08

Copy link
Copy Markdown

Summary

Documents the hydrate attribute on custom elements (zero-mutation hydration via Preact hydrate()), and notes that it does not work when Shadow DOM is enabled.

Fixes #115

Context

Requested in #115, referencing the discussion on #72 / #52: the attribute exists in src/index.js but was never mentioned in the README, and the Shadow DOM limitation should be called out.

Test plan

  • README section added under Usage
  • Maintainer review of wording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Mention hydrate attribute

1 participant