Module: Quilt::ReactRenderable
- Includes:
- ReverseProxy::Controller
- Included in:
- UiController
- Defined in:
- lib/quilt_rails/react_renderable.rb
Defined Under Namespace
Classes: DoNotIntegrationTestError, ReactServerNoResponseError
Instance Method Summary collapse
Instance Method Details
#render_react(headers: {}, data: {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/quilt_rails/react_renderable.rb', line 9 def render_react(headers: {}, data: {}) if Rails.env.test? && !Quilt.configuration.allow_integration_test raise DoNotIntegrationTestError end # Allow concurrent loading to prevent this thread from blocking class # loading in controllers called by the Node server. ActiveSupport::Dependencies.interlock.permit_concurrent_loads do call_proxy(headers, data) end end |