Capacitor sqlite app with react and ionic

I’m making an cross plateform app (web and mobile) with react capacitor and sqlite with serveral pages. I’ve got different pages. I import json datas from a server. But I can’t manage bdd persistance between pages. How to setup initialization and opening bdd to get an persistant sqlite bdd through navigation ? using react context ? I’m trying to do it but doesn’t work. when I go through certain pages I lose the data from the database or i need to close the app and open it to get database for an specific page. Thanks for your help !

1 Like