Flutter redux StoreConnector vs StoreBuilder

Posted by Andre Scott | Updated on

Flutter redux StoreConnector vs StoreBuilder. The difference is basically on the scope of changes.

I’d recommend for the StoreConnector pretty much every time, except for very simple cases.

StoreBuilder always listens on the entire store. StoreConnector converts the store to a widget-specific viewmodel; this is what lets redux be smart about what parts of the tree need be updated when the store changes.

If you have StoreBuilders everywhere, all of them will be updated every time there is a change in the store.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers