I need some help with an assignment for school
I am building an ionic android app that is getting some values from an SQLite database using the native ionic api and rxjs
The problem that I have is that while I can retrieve the values from the database (cool!), the app shows an infinite list of repeating values retrieved from the database (douh!)
I'm stuck, so any help or tips are appreciated!
@astra_underscore@wetdry.world have you done line by line debugging through the part of your code that fetches the values from the db? It's pretty "duh" advice but it's the one my juniors somehow always forget before asking for help
@dfxluna yeah i tried doing that. i logged the length of the returned list and it's first 0 and then 199 then 500 and something (it should be like 5 items because thats whats in db)
i honestly dont know what to make of that
@astra_underscore@wetdry.world Hmmm, my next instinct would be to try and figure out if the problem is occurring in the request to the database or in how we store it? i.e. are we getting the wrong data or are we getting the correct data and doing something weird with it?