Skip to content

Commit f75f915

Browse files
committed
fix ujs
1 parent e5e1c99 commit f75f915

File tree

6 files changed

+28
-25
lines changed

6 files changed

+28
-25
lines changed

lib/assets/javascripts/react_ujs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react/server_rendering/exec_js_renderer.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ class ExecJSRenderer
1010

1111
def initialize(options={})
1212
js_code = options[:code] || raise('Pass `code:` option to instantiate a JS context!')
13-
@context = ExecJS.compile(GLOBAL_WRAPPER + js_code)
13+
full_code = GLOBAL_WRAPPER + js_code
14+
File.write("./test/dummy/tmp/latest_js_context.js", full_code)
15+
@context = ExecJS.compile(full_code)
1416
end
1517

1618
def render(component_name, props, prerender_options)

react-builds/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ dom-helpers@^3.2.0:
292292
"@babel/runtime" "^7.1.2"
293293

294294
electron-to-chromium@^1.4.284:
295-
version "1.4.398"
296-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.398.tgz#b0fd3092b07d81c2ebf63f8395aa8a70c2c0892d"
297-
integrity sha512-tT90Lmieb+Y4jX5Awub8BsvuFM/ICKr01oZFBR9Cy6pxCf+rAmwcpRl4xfXb66DzTXc4qSMPqlqLDoghm27utQ==
295+
version "1.4.399"
296+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.399.tgz#df8a63d1f572124ad8b5d846e38b0532ad7d9d54"
297+
integrity sha512-+V1aNvVgoWNWYIbMOiQ1n5fRIaY4SlQ/uRlrsCjLrUwr/3OvQgiX2f5vdav4oArVT9TnttJKcPCqjwPNyZqw/A==
298298

299299
enhanced-resolve@^5.14.0:
300300
version "5.14.0"

0 commit comments

Comments
 (0)