title: didChangeDependencies setState does not function without Hot Reload
body: <p>I am fetching messages from my server.When i receive messages,they are successfully updated but there is a problem that remains:
  Unless i do a hot reload/restart the data does not update on UI. I check if the messages are updated and they are updated.I inserted multiple setstate values but they do not work. How can I solve this problem?</p>
  <pre><code>  void didChangeDependencies() {
      super.didChangeDependencies();
      setState(() {
        timer = Timer.periodic(Duration(seconds: 3), (Timer t) =&gt; FetchUserMC()..then((value) {
          if(start == false &amp;&amp; (value&gt;messagecount ||value&lt;messagecount)){
            messagecount=value;
            setState(() {});
            messagecheck();
          }
          if(start){
            messagecount = value;
            start = false;}}));
      });
      setState(() {});
    }
  </code></pre>