We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cfbb8 commit bb854ebCopy full SHA for bb854eb
src/internal-plugins/database/lib/stores/collections-store.js
@@ -45,13 +45,18 @@ const CollectionsStore = Reflux.createStore({
45
46
onActivated(appRegistry) {
47
appRegistry.on('database-changed', this.onDatabaseChanged.bind(this));
48
+ appRegistry.on('data-service-disconnected', this.onDisconnected.bind(this));
49
appRegistry.on('data-service-connected', (err, dataService) => {
50
if (!err) {
51
this.dataService = dataService;
52
}
53
});
54
},
55
56
+ onDisconnected() {
57
+ this.setState(this.getInitialState());
58
+ },
59
+
60
getInitialState() {
61
return {
62
columns: COLL_COLUMNS,
0 commit comments