• Hixie's avatar
    Remove the scheduleBuild() API. · 4e289380
    Hixie authored
    I've noticed an anti-pattern emerge where people call scheduleBuild()
    when they think they've changed enough state that they should rebuild,
    instead of just wrapping their changes in setState(). This leads to
    them missing state changes, having extraneous scheduleBuild() calls,
    and other similar bugs.
    
    By removing scheduleBuild(), the only way to actually schedule a build
    now is to call setState(), and hopefully that'll make it much clearer
    that you're only supposed to do this when you change state.
    4e289380
Name
Last commit
Last update
..
bin Loading commit data...
example Loading commit data...
lib Loading commit data...
.gitignore Loading commit data...
BUILD.gn Loading commit data...
CHANGELOG.md Loading commit data...
README.md Loading commit data...
pubspec.yaml Loading commit data...