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

142
Views
Storing a class in local storage?

Please tell me, I am working with the ual-anchor library for authorization, as well as with ual-plainjs-renderer for rendering a modal authorization window. My problem is to store an instance of the UALJS class in local storage (or somewhere else) so that I can access this class even after a page reload.

about 4 years ago · Santiago Gelvez
2 answers
Answer question

0

You are limited to store string key/value pairs in localstorage. The only option is to use JSON.stringify() and JSON.parse(obj)

checkout this thread:

https://stackoverflow.com/a/2010948/12165605

about 4 years ago · Santiago Gelvez Report

0

Try using localStorage like this--

localStorage.setItem("class", JSON.stringify(class));
let class = JSON.parse(localStorage.getItem("class"))
localStorage.removeItem("class");
about 4 years ago · Santiago Gelvez Report
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!