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

233
Views
How can i unmount All the State Values in react ? is this possible?
this.state = {
  loading: false,
  timer: false,
  showZero: false,
  pin: '',
  error: {
    emptyPin: false,
    checkPin: false,
    wrongPin: false,
    message: '',
    devices: undefined,
    type: 999,
    checkBoxStr: '',
  },
  showDialog: false,
  showSnackBar: false,
  singleButtonDialog: false,
  disabledButton: true,
  checkBox: false,
  seconds: 0,
};

this is the State Values , i need to unmount the Values using Componentwillunmount if this possible Please let me know

i got this error

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in VerifyOtp (created by WithStyles(VerifyOtp))
in WithStyles(VerifyOtp) (created by Context.Consumer)
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!