react-paystack
react-paystack copied to clipboard
Unable to load paystack inline script crashing website.
When paystack script isn't loaded, throwing inside a useEffect cannot be cause. This mostly happens when there is a proxy on the internet connection.
Can this be return to the use as past of the hook?
useEffect(() => {
if (scriptError) {
throw new Error('Unable to load paystack inline script');
}
}, [scriptError]);
Also the pop up isn't getting called because scriptLoaded doesn't change
Have you been able to resolve this issues, I'm experiencing the same.