<commit_before>import { store } from 'react-easy-state'
import * as api from './api'

// use 'appStore' instead of 'this' in the store methods to make them passable as callbacks
const appStore = store({
  beers: [],
  async fetchBeers (filter) {
    appStore.isLoading = true
    appStore.beers = await api.fetchBeers(filter)
    appStore.isLoading = false
    window.scrollTo({ top: 0 })
  }
})

export default appStore<commit_msg>remove scroll behavior from beer examples to stay focused<commit_after>import { store } from 'react-easy-state'
import * as api from './api'

// use 'appStore' instead of 'this' in the store methods to make them passable as callbacks
const appStore = store({
  beers: [],
  async fetchBeers (filter) {
    appStore.isLoading = true
    appStore.beers = await api.fetchBeers(filter)
    appStore.isLoading = false
  }
})

export default appStore
{'fraction_non_alphanumeric': 0.10273972602739725, 'fraction_numerical': 0.001141552511415525, 'mean_word_length': 3.818681318681319, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7231747', 'n_tokens_mistral': 269, 'n_tokens_neox': 265, 'n_words': 92}