Published in : 2022-03-30
Hello I need to use the the state in one class component for the react sortable tree.
But I use axios, thunk and redux to get the data.
So what is the best way to get the result of redux store data updated by ajax with axios to the state of my class component each time ?
Basically each time i click “search” it will send action to redux which updates the store, I need then a good way to update the component state from the store.
Thanks for your advice.
Join our community and get the chance to solve your code issues & share your opinion with usSign up Now