diff --git a/lib/client/fast_render.js b/lib/client/fast_render.js index 3793169..e11d640 100644 --- a/lib/client/fast_render.js +++ b/lib/client/fast_render.js @@ -18,17 +18,15 @@ if(FastRender._disable) { // This is the cure FastRender.injectDdpMessage = function(conn, message) { FastRender["debugger"].log('injecting ddp message:', message); - if (conn._bufferedWrites) { - // New with meteor/meteor#5680 - // If the livedata connection supports buffered writes, - // we don't need check if we're in delay before injecting. - conn._livedata_data(message); - } else { + +// Removed check for conn._bufferedWrites due to https://github.com/kadirahq/fast-render/pull/167/files#r74189260 +// and https://github.com/kadirahq/fast-render/issues/176 + var originalWait = conn._waitingForQuiescence; conn._waitingForQuiescence = function() {return false}; conn._livedata_data(message); conn._waitingForQuiescence = originalWait; - } + }; FastRender.init = function(payload) { @@ -98,4 +96,4 @@ FastRender._securityCheck = function(payload) { throw new Error("seems like cookie tossing is happening. visit here: http://git.io/q4IRHQ"); } } -}; \ No newline at end of file +};