scaleflex / filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues
MIT License
1.27k stars 322 forks source link

Maximum call stack size exceeded on updateState #380

Closed metinkun closed 1 month ago

metinkun commented 10 months ago

when i updating design with updateStateFnRef?.current?.(prevDesign) i am getting Maximum call stack size exceeded error. i logged prevState and it look normal. here is my error

image
AhmeeedMostafa commented 10 months ago

Hey @metinkun we will check it and let u know with the updates

YashpalModi commented 10 months ago

Possible You Are Using Code Of Editor More Than 1 time Or Recursively

metinkun commented 10 months ago

Possible You Are Using Code Of Editor More Than 1 time Or Recursively

i am using only 1 editor and calling this function only 1 time. do you have any working example for using updateStateFnRef ?

AhmeeedMostafa commented 1 month ago

Checked and the issue isn't producible and the fn. works fine, seems like it is some issue from your side, if u still have the same issue please add a demo that has the producible issues.