title: Data that comes from API not showing in the page source nuxtjs
body: <p>I'm new to Nuxt and Vue.JS in general. I made something with nuxt but data that comes from API not showing in the page source.</p>
  <p>Here is my index.js in store:</p>
  <pre class="lang-js prettyprint-override"><code>        export const state =  () =&gt; ({
            dayResult: [],
            firstDayInMonth: &quot;&quot;,
            lastDayInMonth: &quot;&quot;,
          })
          
          export const actions = {
            async getPrayers({commit, state}){
              const body = {
                city: &quot;city&quot;,
                country: &quot;country&quot;,
                lat: &quot;lat&quot;,
                long: &quot;long&quot;,
                from: state.firstDayInMonth,
                to: state.lastDayInMonth,
              }
              const city = await this.$axios.post(
                &quot;path/to/api&quot;,
                body
              );
              commit('GET_PRAYERS', city.data)
            }}
      export const mutations = {
        GET_PRAYERS(state, dayResult){
          state.dayResult = dayResult
        }
      }
  </code></pre>
  <p>and this is my script in component :</p>
  <pre class="lang-js prettyprint-override"><code>    import { mapActions, mapMutations, mapState } from &quot;vuex&quot;;
      
      export default {
        computed: {
          ...mapState([&quot;dayResult&quot;, &quot;firstDayInMonth&quot;, &quot;lastDayInMonth&quot;]),
        },
        created() {
          this.getPrayers();
        },
        asyncData() {
          //this.getPrayers();
        },
        methods: {...mapActions([&quot;getPrayers&quot;, &quot;getFirstLast&quot;]),
      };
  </code></pre>
  <p>The method <code>getPrayers();</code> responsible for fetching the data, when calling it in <code>created()</code> hook everything is ok, but there is no data showing in the source page and <strong>this is bad for SEO</strong>, and when calling it in <code>asyncData()</code> hook no data comes from the API and I have a blank page.</p>