Node-v3 icon indicating copy to clipboard operation
Node-v3 copied to clipboard

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

Open aifodu opened this issue 1 year ago • 1 comments

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.

aifodu avatar Sep 23 '23 12:09 aifodu

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.

ajax484 avatar Oct 10 '23 17:10 ajax484