title: ViewModelProviders is outdated, what should be replaced?
body: <p>I use <code>ViewModelProviders</code>. But today, after updating the library, there were 30 messages. As I understand <code>ViewModelProviders</code> was no longer available and you need to replace it, I looked in the developer.google but did not understand what to replace ? My code:</p>
  
  <pre><code>inline fun &lt;reified T : ViewModel&gt; FragmentActivity.injectViewModel(factory: ViewModelProvider.Factory): T {
      return ViewModelProviders.of(this, factory)[T::class.java]
  }
  
  inline fun &lt;reified T : ViewModel&gt; Fragment.injectViewModel(factory: ViewModelProvider.Factory): T {
      return ViewModelProviders.of(this, factory)[T::class.java]
  }
  </code></pre>
  
  <p>and can you explain why it's out of date ?</p>