Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Vue running after deviceready? #2

Open
chasebank opened this issue Jun 15, 2017 · 2 comments
Open

Is Vue running after deviceready? #2

chasebank opened this issue Jun 15, 2017 · 2 comments

Comments

@chasebank
Copy link

chasebank commented Jun 15, 2017

First, awesome job!

But, I'm having a terrible time getting a data adapter running with persistent data. It seems most buggy roads with Cordova lead to whether or not you're running your code after deviceready. But, how you go about insuring that, confuses me... with all the component files and such...

If I'm running some code to start up a database inside the vuex store, is it safe for me to assume it's running after deviceready?

Thanks, hope that question makes sense...

Edit: this illustrates EXACTLY what I'm trying to do, using Loki.js, only that example is with Ionic. It looks like they have $ionicPlatform.ready, but I don't know if there would be any equivalency necessary in this case?

@TheMushrr00m
Copy link
Owner

@chasebank Sorry for the time. But i'm going to check this.

@TheMushrr00m
Copy link
Owner

Hi @chasebank I'm reading about this and i think that maybe this works for you https://github.com/TheMushrr00m/cordovue/blob/master/www/src/Cordova.js#L30 Please check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants