lib/hyperstack/internal/component/rails/server_rendering/contextual_renderer.rb in hyper-component-1.0.alpha1.5 vs lib/hyperstack/internal/component/rails/server_rendering/contextual_renderer.rb in hyper-component-1.0.alpha1.6

- old
+ new

@@ -11,10 +11,14 @@ context.instance_variable_get(context_instance_name) end class ContextualRenderer < React::ServerRendering::BundleRenderer def initialize(options = {}) - super(options) + unless v8_runtime? + raise "Hyperstack prerendering only works with MiniRacer. Add 'mini_racer' to your Gemfile" + end + + super({ files: ['hyperstack-prerender-loader.js'] }.merge(options)) ComponentLoader.new(v8_context).load end def before_render(*args) # the base class clears the log history... we don't want that as it is taken