Skip to content

StatelessWidget with Observer as a const? #999

Closed Answered by amondnet
jshji252 asked this question in Q&A
Discussion options

You must be logged in to vote

Why does using const improve performance? Because the widget is not rebuilt on setState, i.e. the Page Widget itself is not rebuilt. Also, only the changed widgets inside the Page Widget are rebuilt by mobx, which improves performance.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amondnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants