lib/hyper-component.rb in hyper-component-1.0.alpha1.5 vs lib/hyper-component.rb in hyper-component-1.0.alpha1.6
- old
+ new
@@ -1,11 +1,11 @@
require 'hyperstack/internal/component'
-Hyperstack.import 'hyper-state'
Hyperstack.js_import 'react/react-source-browser', client_only: true, defines: %w[ReactDOM React]
Hyperstack.js_import 'react/react-source-server', server_only: true, defines: 'React'
Hyperstack.import 'browser/delay', client_only: true
+Hyperstack.import 'browser/interval', client_only: true
Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS'
Hyperstack.import 'hyper-component' # TODO: confirm this does not break anything. Added while converting hyperloop->hyperstack
Hyperstack.import 'hyperstack/component/auto-import' # TODO: confirm we can cancel the import
if RUBY_ENGINE == 'opal'
@@ -36,9 +36,10 @@
require 'hyperstack/internal/component/while_loading_wrapper'
require 'hyperstack/component/version'
else
require 'opal'
+ require 'hyper-state'
require 'opal-activesupport'
require 'hyperstack/component/version'
require 'hyperstack/internal/component/rails'
require 'hyperstack/component/isomorphic_helpers'
require 'hyperstack/ext/component/serializers'