lib/isomorfeus-react.rb in isomorfeus-react-16.10.11 vs lib/isomorfeus-react.rb in isomorfeus-react-16.10.12
- old
+ new
@@ -83,21 +83,22 @@
# init LucidApplicationContext (Store Provider and Consumer)
require 'lucid_app/context'
LucidApp::Context.create_application_context
# LucidComponent
+ require 'lucid_component/environment_support'
require 'lucid_component/styles_support'
require 'lucid_component/store_api'
require 'lucid_component/app_store_defaults'
require 'lucid_component/component_class_store_defaults'
require 'lucid_component/component_instance_store_defaults'
require 'lucid_component/app_store_proxy'
require 'lucid_component/class_store_proxy'
require 'lucid_component/instance_store_proxy'
require 'lucid_component/initializer'
require 'lucid_component/native_component_constructor'
- require 'lucid_component/event_handler'
+ require 'lucid_component/preloading_support'
require 'lucid_component/mixin'
require 'lucid_component/base'
# LucidApp
require 'lucid_app/api'
@@ -121,14 +122,12 @@
require 'isomorfeus/props/validator'
require 'lucid_prop_declaration/mixin'
Isomorfeus.env = ENV['RACK_ENV']
- if Isomorfeus.production? || Isomorfeus.test?
- Isomorfeus.server_side_rendering = true
- else
- Isomorfeus.server_side_rendering = false
- end
+ require 'net/http' if Isomorfeus.development?
+
+ Isomorfeus.server_side_rendering = true
require 'isomorfeus/react_view_helper'
Opal.append_path(__dir__.untaint)