Closed b3sketchy closed 5 months ago
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:
... | undefined
to any
, silencing a warning about a possible runtime issue.trackInteraction
.The changes are in review right now and I'm expecting a fix this week if not today.
This issue has been resolved in @heap/heap-react-native-autocapture
.
As a small note, issue was in the new @heap/heap-react-native-autocapture
, which is not in hosted in this repo. We unfortunately do not currently have a public mirror for that repo.
@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!