title: Get previous value of state in Composable - Jetpack Compose
body: <p>assume my code looks like this</p>
  <pre><code>@Composable
  fun ExampleList() {
      val tickers by exampleViewModel.tickers.observeAsState()
      LazyColumn() {
          items(items = tickers) { ticker -&gt;
              ExampleItem(ticker)
          }
      }
  }
  @Composable
  fun ExampleItem(ticker: Ticker) {
      Text(text= ticker.lastPrice)
  }
  </code></pre>
  <p>is there anyway to get previous value of ticker in ExampleItem Compose everytime ticker is updated?<br />
  I'm wondering if there's something like componentDidUpdate in React Native</p>