Where do the location, route, dispatch and other attributes in the props of the BasicLayout layout in antd-pro come from?

other attributes know that they are taken from connect, so where did these come from

Aug.13,2021

antd-pro uses umi + dva.
"dva is first a data flow scheme based on redux and redux-saga, and then to simplify the development experience, dva also has additional built-in react-router and fetch, so it can also be understood as a lightweight application framework."
"umi, which can be pronounced as Wumi in Chinese, is a pluggable enterprise react application framework. Umi is based on routing and supports next.js-like engagement routing, as well as a variety of advanced routing functions, with which functions are extended, such as support for routing-level on-demand loading." Routing dependencies such as "built-in react, react-router, etc."
location, route actually come from state management dependencies such as react-router;dispatch, etc., and actually come from redux, redux-saga, etc.

Menu