I was reading about the react-redux connect method in the docs and I note something that I don't quite understand, connect takes mapStateToProps, mapDispatchToProps,mergeProps and options as arguments, then it performs several equalities checks to avoid unnecessary functions calls but it doesn't say anything about the wrapped component until I read about this function connectAdvance().
What is the flow that connect() takes and how it reaches connectAdvance()?.
Is connectAdvance() taking the results of connect() and the props from the wrappedComponent and returning a new component with the new props?
Thank you in advance!.