[Solved] Error: Actions must be plain objects. Instead, the actual type was: ‘function’. You may need to add middleware to your store setup to handle dispatching other values, such as ‘redux-thunk’ to handle dispatching functions.
I just have forgotten to call my action function with parentheses. a simple mistake was throwing a big error.