Local forage completely breaks my application

Author: MinisterraCreated Sep 30, 2023Updated Feb 28, 2025

Hi, this is a pretty serious issue and since there is no error message, I can only show you the line which breaks. This is happening sporadicaly.

THE FIRST CONSOLE.LOG SHOWS IN CONSOLE, THE SECOND ONE DOESNT: image

It doesn´t matter if its a Promise.all or individual awaits. Here is the function, which is called:

image

Again, I repeat, this code works perfectly without any issues, and I assure you, that there is nothing else being called anywhere else. Also the Crypto.JS is not the problem, because before the forage helper function gets called, the Crypto.JS works few lines above it without any issue. This issue freezes my computer and starts all of a sudden even if I change something completely unrelated to localforage. My application stops loading, only a white screen appears, there is some kind of a infinite loop on the background, because the PC gets sluggish . THERE IS NO ERROR MESSAGE IN THE CONSOLE.LOG what so ever no matter what I try. And the only thing that works is restarting my PC. So restarting my PC for some reason wakes up local forage or whatever is happening. Its really, really weird. I repeat, the first console log gets logged, the second 2 lines down doesn´t. when the only thing between these lines is local forage being called.