Ionic React SQLite - Working With Ionic Framework And Capacitor
ฝัง
- เผยแพร่เมื่อ 16 ก.ย. 2024
- Ionic React SQLite - Working With Ionic Framework And Capacitor
#ionic #react #sqlite
I delve into integrating the Capacitor SQLite plugin with Ionic and React. I share my experience with the plugin's documentation and sample applications and explain why I used simple API calls instead of React hooks. I also provide insights into the installation process, including using the Ionic Visual Studio Code plugin and copying the SQL Wasm file. If you're interested in making the plugin work on the web, I also cover that topic. So, join me as we explore the ins and outs of integrating the Capacitor SQLite plugin with Ionic and React! Don't forget to like, subscribe, and let's get started!
/// Sign Up For Our Newsletter buff.ly/3lAk2jL
💥 Source Code - github.com/aar...
💥 Vue Video with more detail on the setup - • Ionic Vue SQLite With ...
💥 Links
--------------------------
Ionic Visual Studio Code Plugin - marketplace.vi...
Ionic React - ionicframework...
Capacitor - capacitorjs.com/
SQLite Plugin - github.com/cap...
#ionicframework #vuejs #ionic #tutorial
There's just a little problem i'm facing that when i make more inserts in the same page, i have to chained useEffects or it just doesn't work. Not quite sure why still. I just observed this when building to Android by now, when using it in the browser it works fine.
This is what I am looking for
Glad it was helpful, please like, subscribe and share
Quick question with create connection.. If i have database versioning, would i have to input the latest version number instead of one, or is this handled? If so would store the latest version elswhere or grab it via a different connection first?
good explanation perfectyle understood , can u plzz make a video with same Ionic React SQLite - Working With Ionic Framework And Capacitor using how to register user and login by generating tokens
thanks for coming through, appreciate it and please sub if you haven't yet. Are you trying to authenticate on the local device?
@@AaronSaundersCI thankyou for the reply . yes i want to authenticate user registration and login using jwt tokens store in localstorage with the help of ionic sqlite capacitor in reactjs
Is there a sample sqlite integration with ionic and angular, i.e. for the sqlite wasm integration ?
I have one for react that I am working on, will post something soon
hi! will you please make a similar thing with Angular??
I will see if I can
Where does the db in this project stored?sqlite file (.db)
In root directory
Hi. I'm a getting a CapacitorSQLitePlugin: null error.
it happens when I call your custom hook useSQLiteDB
Does the source code I provided work? If you are have an error, you will need to reproduce it in a minimal project, thanks
*SOURCE CODE* - github.com/aaronksaunders/ionic7-react-sqlite
All works in browser, but why in real android device not working?
Did you download the code from the original project and run it? You can see from the repo there is an android folder so I know it was tested and running on device… did you watch the entire video you might have missed something
I found the problem. It's because I didn't put the loadData() function in a useEffect (I put it in IonViewWillEnter). thank you anyway.
@@fuwamage1290 glad you got it working
Thank you, the documentation is a hot mess
I think they are just trying to do way to much in one sample app and assuming a lot of domain knowledge
@@AaronSaundersCI yes Documentation of sqlite needs to improve. I'm having a hard time doing task