Commit bd0734d
committed
Add immediate_hydration_config helper to ProUtils
Add a helper method to access the immediate_hydration configuration
from ReactOnRailsPro when Pro is available.
Changes:
- Add immediate_hydration_config class method that returns false
when Pro is not available, or ReactOnRailsPro.configuration.
immediate_hydration when Pro is available
- Update disable_pro_render_options_if_not_licensed to use the
new helper instead of accessing ReactOnRails.configuration
This prepares for removing immediate_hydration from ReactOnRails
configuration.1 parent f6b0f5d commit bd0734d
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| |||
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | | - | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
0 commit comments