-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError - Maximum call stack size exceeded. #15
Comments
hi @alexanderwallin, could you provide a reproducible sample code so i could investigate it. |
@gorhom Sorry, like I said in the description, I unfortunately don't have the time. |
@gorhom I have the same problem, and reproduction steps are simple, take any example and place Portalhost in the parent component of Portal and you will see the problem. I agree @alexanderwallin that it is only in production. |
@beqramo thanks for adding more context to this bug, i will look into it |
@gorhom by the way, I'm using it with https://github.com/dabakovich/react-native-controlled-mentions#readme |
I was struggling with this error as well, and I was able to fix it only by completely removing @gorhom I will do some testing once again, but I think that the |
No idea if this causes the issue, but the return here looks a little suspicious, I don't think you are supposed to return the draft. |
indeed I was able to resolve this issue by wrapping my components in useMemo. there was rerender problem and so for me, that was a solution. |
@alexanderwallin I've just tested it, and it still doesn't work, the same error occurs 😢 @beqramo cool! nevertheless, I think it should work either with or without |
i will look into this today, sorry for the late response |
@mobily did removing |
@gorhom yup, I have been looking for the root of this issue for a few hours and couldn't find anything, and removing |
@mobily alright! one more thing, could you provide a reproducible sample code ? |
@gorhom sure, I will create a repo later today ;) |
I am having the same issue. Is there any fix for this yet? |
@mobily any luck with the repo ? |
@gorhom 👋 no luck :( I have created a fresh RN project with basic components/hooks/helpers that I use in my commercial project, and it works with no error, the app doesn't crash in the release mode… not sure why, I'm looking for a reason |
I'm seeing the same exception using react-native-portal via react-native-bottom-sheet - it only happens in production, when a button on one |
Hi everyone , could anyone try to reproduce it on |
I had seen this error before, but no more. Thanks. |
@gorhom works fine! thanks for fixing this issue ❤️ |
@mobily thanks for testing it 👏 |
We're also getting |
@dburdan could you please provide more info ( env, os, rn version ) or a reproducible sample ? I appreciate it |
@gorhom We are running It's been difficult to trace since everything works great when in debug mode. The crash only appears after building to device or to simulator in release mode. Is there any other information I could share that would be helpful? If I get some time this week, I'll try to build a reproducible example. |
I was using react |
Unable to reproduce as of yet. Ive spent wayyy too long on this already sorry guys unable to give a demo. I managed to fix my issue by moving the context provider to wrap the |
@gorhom Are there some news about this problem? I'm getting the same error and I'm using |
I am also seeing this issue but it only seems to appear once the app is in release mode or built. |
Could this be the source based on the original stacktrace? immerjs/immer#832 |
I ended up forking and refactoring immer from the project; my production builds are no longer crashing with the RangeError, so feel pretty certain that the issue is related to a bug within immer. |
@egadstar would you mind submitting a pr :) |
Yea, no problem. Because I removed immer, I didn't know if you wanted to move that direction. I'll get it submitted, and you can review it. |
I did a poor job reading through this thread; didn't realize that @mobily had already zeroed in on immer. |
this should be fixed with |
Hi there,
I liked the API design of this library and decided to use it together with
react-native-modalize
. It worked well locally, but in distribution builds the below error caused crashes on both iOS and Android.I switched to another library and unfortunately can't put time into creating a bare minimum reproducible case. But I thought I'd share it!
The text was updated successfully, but these errors were encountered: