Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't set my state equal to updated array data.. onChangeOrder. #232

Open
umairalirehan opened this issue Oct 1, 2021 · 0 comments
Open

Comments

@umairalirehan
Copy link

Doesn't set my new state. onChangeOrder set my state(all data) equal to its key. I need the set all the new updated array data.

const onChangeOrder = (nextOrder) => {
setData(nextOrder);
console.log("nextOrder", nextOrder);
console.log("dataHere", data);

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant