Skip to content

Commit 153892f

Browse files
committed
fixed formatting
1 parent f8bdff6 commit 153892f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/release-notes/16.0.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ _The image above demonstrates the dramatic performance improvement:_
5959
- The `generated_component_packs_loading_strategy` defaults to `:async` for Shakapacker ≥ 8.2.0 and `:sync` for Shakapacker < 8.2.0.
6060
- The `immediate_hydration` configuration now defaults to `false`. **Note: `immediate_hydration` is a React on Rails Pro (licensed) feature.**
6161
- When `generated_component_packs_loading_strategy: :async` and `immediate_hydration: true` are configured together, they optimize component hydration. Components hydrate as soon as their code and server-rendered HTML are available, without waiting for the full page to load. This parallel processing significantly improves time-to-interactive by eliminating the traditional waterfall of waiting for page load before beginning hydration (It's critical for streamed HTML).
62+
6263
- The previous need for deferring scripts to prevent race conditions has been eliminated due to improved hydration handling. Making scripts not defer is critical to execute the hydration scripts early before the page is fully loaded.
6364
- The `immediate_hydration` configuration (React on Rails Pro licensed feature) makes `react-on-rails` hydrate components immediately as soon as their server-rendered HTML reaches the client, without waiting for the full page load.
6465
- To enable optimized hydration, you can set `immediate_hydration: true` in your `config/initializers/react_on_rails.rb` file (requires React on Rails Pro license).
@@ -67,6 +68,7 @@ _The image above demonstrates the dramatic performance improvement:_
6768
- You can override this behavior for individual Redux stores by calling the `redux_store` helper with `immediate_hydration: true` or `immediate_hydration: false`, same as `react_component`.
6869

6970
- `ReactOnRails.reactOnRailsPageLoaded()` is now an async function:
71+
7072
- If you manually call this function to ensure components are hydrated (e.g., with async script loading), you must now await the promise it returns:
7173

7274
```js

0 commit comments

Comments
 (0)