lib/preact.rb in isomorfeus-preact-10.6.44 vs lib/preact.rb in isomorfeus-preact-10.6.45

- old
+ new

@@ -292,14 +292,10 @@ else `Opal.global.Preact.render(native_preact_element, container_node)` end end - if on_ssr? - def self.render_to_string(native_preact_element) - `Opal.global.Preact.renderToString(native_preact_element)` - end - end + # render_to_string is in top_level_ssr.rb def self.unmount_component_at_node(element_or_query) if `(typeof element_or_query === 'string')` || (`(typeof element_or_query.$class === 'function')` && element_or_query.class == String) element = `document.body.querySelector(element_or_query)` elsif `(typeof element_or_query.$is_a === 'function')` && element_or_query.is_a?(Browser::Element)