How is the model data passed when the dva framework connect

as shown in the following figure, the last line here is written like this:

const HomePage = connect(({ count }) => ({ count }))(CountApp);

my understanding is that connect indicates that the count , the model data, is connected to the corresponding component.
but I changed the pass parameter casually, and it can still connect count to the component.
I"d like to ask you how to understand the parameters in connect here, and how it finds count data.

clipboard.png


clipboard.png

the weird thing is that I changed the way I wrote it, and it worked just as well:

const HomePage = connect( ({ count }) => ({ count }) )(CountApp);
const HomePage = connect( a => a )(CountApp);
Jul.15,2021

my understanding
connect ((a) = > (a)) where a takes all the collections registered with model and returns a: {count: {record:0.}}
connect (( { count } ) = > ({count})) here is the parsing assignment method of es6, and the count data in the object is returned, count: {record:0.}

.
person = {age:14,name:"abc"};
let {age} = person;//age = 14
Menu