RangeError: Maximum call stack size exceeded
ciprian-morar opened this issue · 4 comments
Hello,
I'm trying to add your component and Maximum call stack size exceeded is raised
In the array of urls I've tried:
[0: "http://localhost:8080/dam/jcr:230baad3-2047-4955-9a30-83428c163b88/100113.jpg"]
[0: null, 1: "http://localhost:8080/dam/jcr:230baad3-2047-4955-9a30-83428c163b88/100113.jpg"]
[0: "dam/jcr:230baad3-2047-4955-9a30-83428c163b88/100113.jpg"]
[0: null, 1: "dam/jcr:230baad3-2047-4955-9a30-83428c163b88/100113.jpg"]
[0: "/dam/jcr:230baad3-2047-4955-9a30-83428c163b88/100113.jpg"]
[0: null, 1: "/dam/jcr:230baad3-2047-4955-9a30-83428c163b88/100113.jpg"]
Can you help me with this please?
`
Can you show me the stack trace?
Hmm... that information is not enough to figure out what is happening.
BTW, your code is trying to append URLs to pages
dynamically, probably while Flipbook is running.
Unfortunately, Flipbook does not expect the pages
prop to be changed dynamically.
Maybe this problem can be resolved by moving pages
from data
to computed
and move the for
loop to that computed, so that Flipbook sees immutable pages
.
Thank you, Takeshi. It worked.