The line: " this.memory().splice(0, this.memoryArray().length, ...items);" in the "loadPersistentData" function is giving off error when the items size is use, say 150K.
The error: "Uncaught (in promise) RangeError: Maximum call stack size exceeded"
POSSIBLE FIX:
// Replace this:
// this.memory().splice(0, this.memoryArray().length, ...items);
// With this:
const mem = this.memory();
mem.length = 0; // Clear the array while keeping the reference
for (const item of items) {
mem.push(item);
}
The line: " this.memory().splice(0, this.memoryArray().length, ...items);" in the "loadPersistentData" function is giving off error when the items size is use, say 150K.
The error: "Uncaught (in promise) RangeError: Maximum call stack size exceeded"
POSSIBLE FIX: