Polyfills for native crypto
This commit is contained in:
parent
b2dd8d4f44
commit
77b938845a
15 changed files with 243 additions and 81 deletions
|
@ -1,4 +1,5 @@
|
|||
import React, {useState, useEffect} from 'react'
|
||||
import {whenWebCrypto} from './platform/polyfills.native'
|
||||
import {RootStore, setupState, RootStoreProvider} from './state'
|
||||
import * as Routes from './routes'
|
||||
|
||||
|
@ -7,7 +8,7 @@ function App() {
|
|||
|
||||
// init
|
||||
useEffect(() => {
|
||||
setupState().then(setRootStore)
|
||||
whenWebCrypto.then(() => setupState()).then(setRootStore)
|
||||
}, [])
|
||||
|
||||
// show nothing prior to init
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue