useState race condition - Nuxt