I’m working with a database and now and then, the readRecords statement that was working, stops working, and I need to clear my cache and cookies, then restart my browser and then it works again. At this point, I can’t get past this issue. When I run my app the first time, readRecords works, numStudents is correct and the console displays the names.
Then, when I run it a second time with no changes, it doesn’t work. After readRecords, numStudents = 0.
So, I delete the cache and cookies, then restart the browser, and I get the first result again. Run it the second time, numStudents = 0 again…
Is there a known issue with readRecords? Am I doing something funky?
(Note: Much of this code is draft code. I’m only interested in the readRecords issue for now.)
Thank you for your time!