withIAPContext makes App renders twice. #2869
Unanswered
dmk3141618
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Try to remove react strict mode ReactDOM.render( Remove <React.StrictMode> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can I use withIAPContext on any component? not just App like
export default withIAPContext(App);
Can I use like this below if I only use purchase hooks on PurchaseItemScreen?
export default withIAPContext(PurchaseItemScreen);
Description
https://react-native-iap.hyo.dev/docs/api-reference/hooks
Expected Behavior
Just render once. Because I have to watch app logs.
Screenshots
Environment:
To Reproduce
Steps to reproduce the behavior:
Just run this code. And press 'r' to refresh App.
[Optional] Additional Context
Is it because of this? (withIAPContext.tsx)
Beta Was this translation helpful? Give feedback.
All reactions