You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the app is opened on Android and the user reach a screen where tanstack-form is used the app crashes because str.replaceAll is being called when the form is mounted. str.replaceAll doesn't exist without hermes enabled on React-Native
Your minimal, reproducible example
Didn't have time to prepare a working example for a React-Native app
Steps to reproduce
FieldApi.update is being called on mount the form
getBy is called where str.replaceAll is used
The app crashes
Expected behavior
The app shouldn't crash, I fixed the problem with polyfill but I think you could probably easily change the use of replaceAll to avoid this Android issue
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
OS: Android (React-Native)
Version: 0.29.2
TanStack Form adapter
None
TanStack Form version
v0.29.2
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
josej14
changed the title
str.replaceAll is not a function on react-native (Android only)
str.replaceAll is not a function on react-native (Android)
Aug 29, 2024
Describe the bug
When the app is opened on Android and the user reach a screen where tanstack-form is used the app crashes because
str.replaceAll
is being called when the form is mounted.str.replaceAll
doesn't exist without hermes enabled on React-NativeYour minimal, reproducible example
Didn't have time to prepare a working example for a React-Native app
Steps to reproduce
FieldApi.update
is being called on mount the formgetBy
is called wherestr.replaceAll
is usedExpected behavior
The app shouldn't crash, I fixed the problem with polyfill but I think you could probably easily change the use of
replaceAll
to avoid this Android issueHow often does this bug happen?
None
Screenshots or Videos
No response
Platform
TanStack Form adapter
None
TanStack Form version
v0.29.2
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: