Skip to content

Commit

Permalink
Fix Meteor.status not reactive anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed Jun 3, 2016
1 parent a8f3a25 commit caf3b1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-meteor",
"version": "1.0.0-rc7",
"version": "1.0.0-rc8",
"description": "Full Meteor Client for React Native",
"main": "src/Meteor.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/Meteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ module.exports = {


Data.ddp.on("connected", ()=>{

Data.notify('change');

console.info("Connected to DDP server.");
this._loadInitialUser();

Expand All @@ -106,6 +109,9 @@ module.exports = {

let lastDisconnect = null;
Data.ddp.on("disconnected", ()=>{

Data.notify('change');

console.info("Disconnected from DDP server.");

if(!lastDisconnect || new Date() - lastDisconnect > 3000) {
Expand Down

0 comments on commit caf3b1b

Please sign in to comment.