Skip to content

Commit

Permalink
Merge pull request #49 from HubSpot/tf/fix-little-doc-thing
Browse files Browse the repository at this point in the history
Fix useAfterIslandHydration backwards logic
  • Loading branch information
timmfin authored Apr 17, 2024
2 parents 43f6472 + 139205e commit bf45dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/cms-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ We provide a number of React hooks from the `@hubspot/cms-components` package to

Will return `true` only after hydration is completed. More specifically it will:

- Return `true` during the initial render on the server.
- Return `true` during the first render that happens inside the browser.
- Return `false` during any subsequent renders that happen after the component has been “mounted” in the browser.
- Return `false` during the initial render on the server.
- Return `false` during the first render that happens inside the browser.
- Return `true` during any subsequent renders that happen after the component has been “mounted” in the browser.

This hook is useful because React requires server-rendered HTML to match the initial client render. See the [Server/Client Rendering section](../appendix#server-side-client-side-rendering) in the appendix for more information.

Expand Down

0 comments on commit bf45dad

Please sign in to comment.