Closed mg4u closed 6 years ago
You need to use the same db instance between the screens.
Please. Feel free to reopen.
@antoniopresto Thanks a lot, it works now.
In case someone faces this issue like me, there are 2 solutions:
1- Use the same instance by creating it in some global.js
of config.js
file and import it to any component file you want to use.
2- Instead of autoloading the DB just create the object and put any find, remove, update or insert
inside loadDatabse
block
Hi all, Here is my code
When I navigate from the current scrren to another screen and write this code
No tasks appear, But if I restart the application the tasks shown in the app.
Same thing for remove. I remove everything on log out, if I make login again right back the old tasks still available on the application, it disappears if only I restart the app.
The Versions
What can I do to solve this issue?