Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
SessionStorage Slow Loading

I'm using SessionStorage data to display the username on the screen. The name should load after login, but the information is only loaded when I refresh the page (clicking on reload). Does anyone know why?

    HTML
    <cv-header-name to="/"> Welcome {{ userName }}</cv-header-name>


    VUE
      data: function () {
       return {
       userName: [],
       };
      },
      mounted() {
        if(sessionStorage.getItem('name')) {
      try {
        this.userName = JSON.parse(sessionStorage.getItem('name'))
      }catch (error) {
        sessionStorage.removeItem('name')
      }
    }
    }

Before refresh enter image description here

After refresh enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!