aboutReact-Redux
Modify the of the target componentprops
Logic of:
-
stay
connectAdvanced
In the component, the current component will listenstore
Changes, oncestore
If there is a change, the corresponding listening method in the component will be called. -
This method will take the calculated
props
Save tothis.selector.props
In a temporary variable, and then invokesetState
Forcere-render
。 -
Then in
render
Methodthis.selector.props
Asprops
Pass to target component -
as for
render
Call in step 2setState
When you’re ready, you’ll putconnectAdvanced
Component marked asdirty
, it will cause all the following nodesrender
(regardless of the impact of shouldcomponentupdate).