react-on-rails 16.4.0-rc.2 → 16.4.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types/index.js +5 -4
- package/package.json +1 -1
package/lib/types/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react/experimental" />
|
|
2
2
|
const throwRailsContextMissingEntries = (missingEntries) => {
|
|
3
3
|
throw new Error(`Rails context does not have server side ${missingEntries}.\n\n` +
|
|
4
|
-
'
|
|
5
|
-
'1.
|
|
6
|
-
'2.
|
|
7
|
-
' ReactOnRailsPro.configuration.enable_rsc_support = true'
|
|
4
|
+
'This is either a configuration issue or a bug:\n' +
|
|
5
|
+
'1. Ensure you are using a compatible version of react_on_rails_pro\n' +
|
|
6
|
+
'2. Ensure server components support is enabled:\n' +
|
|
7
|
+
' ReactOnRailsPro.configuration.enable_rsc_support = true\n\n' +
|
|
8
|
+
'If the above are correct, please report at https://github.com/shakacode/react_on_rails/issues');
|
|
8
9
|
};
|
|
9
10
|
export const assertRailsContextWithServerComponentMetadata = (context) => {
|
|
10
11
|
if (!context ||
|