Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Sep 10, 2020

Having side-effects in a getter is surprising and unintuitive. This reduces the side-effects caused by RestorationManager.rootBucket.

Also, flutter/engine#21062 is planning on making the message queue draining asynchronous, so we need to make sure that we subscribe to messages before the build phase is scheduled, otherwise we will be delaying the first frame by one cycle.

@flutter-dashboard flutter-dashboard bot added framework flutter/packages/flutter repository. See also f: labels. work in progress; do not review labels Sep 10, 2020
…ation.

Having side-effects in a getter is surprising and unintuitive. This reduces the side-effects caused by RestorationManager.rootBucket.

Also, flutter/engine#21062 is planning on making the message queue draining asynchronous, so we need to make sure that we subscribe to messages before the build phase is scheduled, otherwise we will be delaying the first frame by one cycle.
@Hixie Hixie marked this pull request as ready for review September 11, 2020 00:02
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fluttergithubbot fluttergithubbot merged commit b3d1ebf into flutter:master Sep 11, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants