-
Notifications
You must be signed in to change notification settings - Fork 36
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
Hiding Inputs with heap autocapture enabled before debounce succeeds causes app to crash #428
Comments
Hey @b3sketchy I'm experiencing the same issue—did you find any solution to it? |
Hi @sunkibaek and @b3sketchy, Sorry for the delay in responding. This bug uncovered three distinct issues:
The changes are in review right now and I'm expecting a fix this week if not today. |
This issue has been resolved in As a small note, issue was in the new |
@bnickel Thank you for the update and the help! Will take a look at updating my end and retesting soon. @sunkibaek the solution we ended up using was to use a "custom" (mainly re-used heaps) babel plugin to ignore the inputs. Let me know if this would be helpful to you and I can post it but seems like our issues should be resolved now. |
Problem:
Running into an issue and hoping for some help here, looks like others have hit a similar error as well. It seems that the debounce in the autocapture handling can cause app crashes when removing the input element prior to the debounce call firing. I'm running into this specifically in a search implementation where we redirect the user (and thus remove the input). When executed quickly by the user, the app crashes.
Reproduce (using Tamagui for the UI):
If you type up to the 4-5 second mark the following error will cause the
TypeError: null is not an object
error to occur and crash the app.More info:
withHeapIgnore
,<HeapIgnore>
,<HeapIgnoreText>
with no success. If my understanding is correct, these are meant to hide data but not negate the setup that the autoregister does for input event capturing.FunctionDeclaration(path)
handling in@heap/babel-plugin-heap-react-native-autocapture
configures theautocapture
hoc setup w/ the debounce. I'm trying to find a way to opt specific components out of this HOC structure.Tools / Versions:
20.8.0
18.2.0
0.73.7
50.0.17
1.88.6
Any help is much appreciated!
The text was updated successfully, but these errors were encountered: