examples/nutshell/src/index.js
async function nextQuote(store) {
  await store.update(state => {
    state.quoteId = state.quoteId + 1
    if (state.quoteId >= MAX_QUOTE_ID) {
      state.quoteId = 1
    }
  })
}
async function nextQuote(store) {
  await store.update(state => {
    state.quoteId = state.quoteId + 1
    if (state.quoteId >= MAX_QUOTE_ID) {
      state.quoteId = 1
    }
  })
}
async function nextQuote ( store ) { await store . update ( state => { state . quoteId = state . quoteId + 1 if ( state . quoteId >= MAX_QUOTE_ID ) { state . quoteId = 1 } } ) }
define action the move to next quote
define action the move to next quote