Using CordovaSQLiteDriver whenever possible.
This commit is contained in:
1 parent
d0bac1c509
commit
548d4a43cb
1 file changed
+2
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user