Using CordovaSQLiteDriver whenever possible.
This commit is contained in:
parent
d0bac1c509
commit
548d4a43cb
|
@ -13,6 +13,7 @@ const DbContextProvider: react.FC<{
|
|||
const [ready, setReady] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
localforage.defineDriver(CordovaSQLiteDriver).then(() => {
|
||||
const config = {
|
||||
name: 'dyomedea',
|
||||
driver: [
|
||||
|
@ -28,6 +29,7 @@ const DbContextProvider: react.FC<{
|
|||
});
|
||||
setStore(newStore);
|
||||
setReady(true);
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue