Node-v3
Node-v3 copied to clipboard
Uncaught Error: Reducer "current" returned undefined during initialization.
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
- Generate payment link using the steps outlined here
- 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.
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.