fix(rn) await for the promise in the _init object
This commit is contained in:
parent
1d3d6a32a6
commit
26a6c336e3
|
@ -31,7 +31,10 @@ export type Props = {
|
|||
* @abstract
|
||||
*/
|
||||
export class AbstractApp extends BaseApp<Props, *> {
|
||||
_init: Promise<*>;
|
||||
/**
|
||||
* The deferred for the initialisation {{promise, resolve, reject}}.
|
||||
*/
|
||||
_init: Object;
|
||||
|
||||
/**
|
||||
* Initializes the app.
|
||||
|
@ -57,7 +60,7 @@ export class AbstractApp extends BaseApp<Props, *> {
|
|||
const previousTimestamp = prevProps.timestamp;
|
||||
const currentTimestamp = this.props.timestamp;
|
||||
|
||||
await this._init;
|
||||
await this._init.promise;
|
||||
|
||||
// Deal with URL changes.
|
||||
|
||||
|
|
|
@ -53,7 +53,10 @@ type Props = AbstractAppProps & {
|
|||
* @augments AbstractApp
|
||||
*/
|
||||
export class App extends AbstractApp {
|
||||
_init: Promise<*>;
|
||||
/**
|
||||
* The deferred for the initialisation {{promise, resolve, reject}}.
|
||||
*/
|
||||
_init: Object;
|
||||
|
||||
/**
|
||||
* Initializes a new {@code App} instance.
|
||||
|
|
|
@ -29,7 +29,10 @@ type Props = {
|
|||
* @augments BaseApp
|
||||
*/
|
||||
export default class PrejoinApp extends BaseApp<Props> {
|
||||
_init: Promise<*>;
|
||||
/**
|
||||
* The deferred for the initialisation {{promise, resolve, reject}}.
|
||||
*/
|
||||
_init: Object;
|
||||
|
||||
/**
|
||||
* Navigates to {@link Prejoin} upon mount.
|
||||
|
|
Loading…
Reference in New Issue