medipass/react-payment-inputs

Warning: require cycle

Opened this issue · 0 comments

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