medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
341 stars 62 forks source link

Warning: require cycle #55

Open Jurek33 opened 3 years ago

Jurek33 commented 3 years ago

Hello and thank you very much for the library. The experience so far is really good but I think it might be important to raise one issue. I have not faced any errors related to this warning so far but it would be great if you could fix it to avoid possible future issues. This warning shows up right after the build:

Require cycle: node_modules/react-native-payment-inputs/dist/hooks/index.js -> node_modules/react-native-payment-inputs/dist/hooks/usePaymentInputs.js -> node_modules/react-native-payment-inputs/dist/hooks/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

Node: 12.18.1 iOS: 14.3 Simulator: iPhone 11