react-native-meteor
Advanced tools
Comparing version 1.0.0-beta30 to 1.0.0-beta31
{ | ||
"name": "react-native-meteor", | ||
"version": "1.0.0-beta30", | ||
"version": "1.0.0-beta31", | ||
"description": "Full Meteor Client for React Native", | ||
@@ -5,0 +5,0 @@ "main": "src/Meteor.js", |
@@ -38,2 +38,3 @@ import React from 'react-native'; | ||
this.on('loggingIn', cb); | ||
this.on('change', cb); | ||
}, | ||
@@ -45,2 +46,3 @@ offChange(cb) { | ||
this.off('loggingIn', cb); | ||
this.off('change', cb); | ||
}, | ||
@@ -47,0 +49,0 @@ on(eventName, cb) { |
@@ -74,2 +74,5 @@ | ||
}, | ||
reconnect() { | ||
Data.ddp && Data.ddp.connect(); | ||
}, | ||
connect(endpoint, options) { | ||
@@ -109,4 +112,3 @@ if(!endpoint) endpoint = Data._endpoint; | ||
console.info("Disconnected from DDP server."); | ||
this.handleLogout(); | ||
this.connect(); | ||
Data.ddp.connect(); | ||
}); | ||
@@ -113,0 +115,0 @@ |
@@ -11,3 +11,3 @@ import { AsyncStorage } from 'react-native'; | ||
if(!this._userIdSaved) return null; | ||
return this.collection('users').findOne(this._userIdSaved); | ||
@@ -17,3 +17,3 @@ }, | ||
if(!this._userIdSaved) return null; | ||
const user = this.collection('users').findOne(this._userIdSaved); | ||
@@ -86,3 +86,5 @@ return user && user._id; | ||
Data.notify('onLoginFailure'); | ||
this.handleLogout(); | ||
} | ||
Data.notify('change'); | ||
}, | ||
@@ -89,0 +91,0 @@ async _loadInitialUser() { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49185
1206
0