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

162
Views
Sort Product Sorting on Drag & Drop

I have implemented react-beautiful-dnd to drag & drop elements inside of a table.

Now I am not sure how to dispatch into the backend the information so that the sorting persits.

When I am done dragging, it fires an event that returns an array but I am not sure how to dispatch this array into the backend.

I was thinking about creating an UpdateAllProduct Router/Action but it doesn't feel like good practice.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can add order property that holds order of the array. Then you can update your database according to order property.

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!