lib/isomorfeus/ssr.rb in isomorfeus-preact-10.6.42 vs lib/isomorfeus/ssr.rb in isomorfeus-preact-10.6.43
- old
+ new
@@ -68,8 +68,18 @@
if (typeof global.NanoCSSInstance !== 'undefined') { ssr_styles = global.NanoCSSInstance.raw }
let nfp = (global.HasTransport && global.Opal.Isomorfeus.Transport["$busy?"]()) || (global.HasStore && global.Opal.Isomorfeus.store["$recently_dispatched?"]());
global.NeedFurtherPass = (nfp == nil) ? false : nfp;
return [rendered_tree, application_state, ssr_styles, global.Opal.Isomorfeus['$ssr_response_status'](), global.NeedFurtherPass, global.Exception ? { message: global.Exception.message, stack: global.Exception.stack } : false];
}
+
+ self.still_busy = function(){
+ let nfp = global.Opal.Isomorfeus.Transport["$busy?"]() || global.Opal.Isomorfeus.store["$recently_dispatched?"]();
+ return (nfp == global.Opal.nil) ? false : nfp;
+ }
+
+ self.store_busy = function() {
+ let nfp = global.Opal.Isomorfeus.store["$recently_dispatched?"]();
+ return (nfp == global.Opal.nil) ? false : nfp;
+ }
}
end
end
\ No newline at end of file