You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,10 @@ Changes since the last non-beta release.
33
33
34
34
- Deprecated `defer_generated_component_packs` configuration option. You should use `generated_component_packs_loading_strategy` instead. [PR 1712](https://github.com/shakacode/react_on_rails/pull/1712) by [AbanoubGhadban](https://github.com/AbanoubGhadban).
35
35
36
+
### Changed
37
+
38
+
- The global context is now accessed using `globalThis`. [PR 1727](https://github.com/shakacode/react_on_rails/pull/1727) by [alexeyr-ci2](https://github.com/alexeyr-ci2).
39
+
36
40
### [15.0.0-alpha.2] - 2025-03-07
37
41
38
42
See [Release Notes](docs/release-notes/15.0.0.md) for full details.
Copy file name to clipboardExpand all lines: docs/release-notes/15.0.0.md
+5
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,11 @@ Major improvements to component and store hydration:
68
68
- If you were previously using `defer_generated_component_packs: false`, use `generated_component_packs_loading_strategy: :sync` instead
69
69
- For optimal performancewith Shakapacker ≥ 8.2.0, consider using `generated_component_packs_loading_strategy: :async`
70
70
71
+
### `globalThis`
72
+
73
+
[`globalThis`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis) is now used in code.
74
+
It should be available in browsers since 2020 and inNode, but in case your environment doesn't support it, you'll need to shim it using [globalthis](https://www.npmjs.com/package/globalthis) or [core-js](https://www.npmjs.com/package/core-js).
75
+
71
76
## Store Dependencies for Components
72
77
73
78
When using Redux stores with multiple components, you need to explicitly declare store dependencies to optimize hydration. Here's how:
0 commit comments