Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Meteor 1.3 / 1.4 #184

Merged
merged 2 commits into from
Aug 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions lib/client/fast_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -98,4 +96,4 @@ FastRender._securityCheck = function(payload) {
throw new Error("seems like cookie tossing is happening. visit here: http://git.io/q4IRHQ");
}
}
};
};