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
useState does not work with another prop function which uses dispatch from useReducer

I have a function contains prop function and useState hook together that attached onClick event.

When event was fired, prop function works but my local useState hook does not work. If I delete prop function, everything is okay and hook is running. I can not understand why my hook does not work with prop function.

You can see the function. props.add works fine but setBookmarked doesnt work.

And here, you can check my prop function.

Any idea?

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!