instant-local-throwaway
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -38,2 +38,5 @@ import * as instaql from './instaql'; | ||
useEffect(() => { | ||
// This is a hack, so that we don't start when in SSR | ||
// need to think if this is the right approach | ||
db.start(); | ||
const unsub = db.subscribe((state) => { | ||
@@ -40,0 +43,0 @@ setState(initState(state)); |
@@ -99,2 +99,3 @@ import * as s from './store'; | ||
constructor(config: Config); | ||
start(): void; | ||
_refreshTokenUnsub: Function | undefined; | ||
@@ -101,0 +102,0 @@ _startRefreshTokenListener(): void; |
@@ -42,2 +42,4 @@ import * as s from './store'; | ||
this.refreshToken = APP_ID_TO_REFRESH_TOKEN[config.appId]; | ||
} | ||
start() { | ||
this._startRefreshTokenListener(); | ||
@@ -44,0 +46,0 @@ this._startSocket(); |
@@ -65,2 +65,5 @@ "use strict"; | ||
(0, react_1.useEffect)(() => { | ||
// This is a hack, so that we don't start when in SSR | ||
// need to think if this is the right approach | ||
db.start(); | ||
const unsub = db.subscribe((state) => { | ||
@@ -67,0 +70,0 @@ setState(initState(state)); |
@@ -99,2 +99,3 @@ import * as s from './store'; | ||
constructor(config: Config); | ||
start(): void; | ||
_refreshTokenUnsub: Function | undefined; | ||
@@ -101,0 +102,0 @@ _startRefreshTokenListener(): void; |
@@ -72,2 +72,4 @@ "use strict"; | ||
this.refreshToken = auth_1.APP_ID_TO_REFRESH_TOKEN[config.appId]; | ||
} | ||
start() { | ||
this._startRefreshTokenListener(); | ||
@@ -74,0 +76,0 @@ this._startSocket(); |
@@ -55,2 +55,5 @@ import * as instaql from './instaql'; | ||
useEffect(() => { | ||
// This is a hack, so that we don't start when in SSR | ||
// need to think if this is the right approach | ||
db.start(); | ||
const unsub = db.subscribe((state) => { | ||
@@ -57,0 +60,0 @@ setState(initState(state)); |
@@ -104,6 +104,9 @@ import * as s from './store'; | ||
this.refreshToken = APP_ID_TO_REFRESH_TOKEN[config.appId]; | ||
} | ||
start() { | ||
this._startRefreshTokenListener(); | ||
this._startSocket(); | ||
} | ||
// ------------- | ||
@@ -110,0 +113,0 @@ // Refresh Tokens |
{ | ||
"name": "instant-local-throwaway", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "This is an experiment for instant", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
934960
18359