Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load paystack inline script crashing website. #51

Open
cjndubisi opened this issue Jan 30, 2022 · 3 comments
Open

Unable to load paystack inline script crashing website. #51

cjndubisi opened this issue Jan 30, 2022 · 3 comments

Comments

@cjndubisi
Copy link

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]);
@cjndubisi
Copy link
Author

Also the pop up isn't getting called because scriptLoaded doesn't change

@EmmanuelOmoiya
Copy link

Have you been able to resolve this issues, I'm experiencing the same.

@ChinonsoIg
Copy link

Hi everyone. Any solution to this? I'm experiencing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants