title: which life cycle method is called during page refresh(shift+F5) in vuejs?
body: <p>When refresh my page, it is losing data. In my page i do a GET call in</p>
  
  <pre><code>  beforeMount(){
        this.getUserProfile()
      }, 
  </code></pre>
  
  <p>and when i am refreshing the page, the user profile data are lost. 
  So which life cycle method is called during page refresh?? or during page refresh where i have to call getProfile() method?     </p>
  
  <p>getUserProfile:</p>
  
  <pre><code> getUserProfile() {
      let flag = 1;
  
    axios
      .get("/api/user")
      .then(response =&gt; {
          let data = response.data;
  
         if (flag == 1) {
  
            this.fname = data.user.first_name;
            this.lname = data.user.last_name;
            this.email =  data.user.email;
  
          }else {
              Vue.$toast.error(data.message, {
              position: 'top-right'
              });
          }
       // })
        // .catch(err =&gt; {
        //   Vue.$toast.error(err, {
        //   position: 'top-right'
        //   });
  
         });
  
   },
  </code></pre>