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

Uncaught Error: Reducer "current" returned undefined during initialization. #137

Open
aifodu opened this issue Sep 23, 2023 · 1 comment

Comments

@aifodu
Copy link

aifodu commented Sep 23, 2023

Description

Uncaught Error: Reducer "current" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.

Steps to Reproduce

  1. Generate payment link using the steps outlined here
  2. Navigate to generated link

Expected behaviour

Payment modal to open as expected for test

Actual behaviour

The spinner keeps spinning and when console is inspected there is the error described above

Reproduces how often

100% when a link is generated

Configuration

  • API Version: v3
  • Environment: test mode
  • Browser: all
  • Language: PHP 8.2

Additional Information

I am calling the FLW API directly, without any SDK.

@ajax484
Copy link

ajax484 commented Oct 10, 2023

The error message you encountered, "Uncaught Error: Reducer 'current' returned undefined during initialization," is typically related to Redux, a state management library in JavaScript, and it suggests that one of your reducers is returning undefined during initialization.

Since you mentioned that you're calling the Flutterwave API directly without using the SDK, the issue may not be directly related to the Flutterwave Node.js SDK itself. Instead, it's likely within your application's Redux store configuration or usage.

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

2 participants