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

254
Views
How to import state from redux slices as different variables?

I have notification component which shows state of queries, so I need to import all states as different names in cause of many variables with same names

const { loading, success, error } = useAppSelector(state => state.messageReducer)
const { loading, success, error } = useAppSelector(state => state.offerReducer)

I want to do it like destructuring works:

const { customName, customName1, customName2 } = {loading, success, error}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

 const { loading : basketLoading, success : basketSuccess, error: basketError } = useAppSelector(state => state.basketReducer)

It was pretty easy...

about 4 years ago · Juan Pablo Isaza 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!