Usage of payload/action in React-redux reducers
Learning React Redux and am a newbie so sorry in advance if this is a dumb question. I am currently trying to work throguh some example code and have the following in two separate slices:
TypeError: Cannot destructure property ‘currentUser’ of ‘useSelector(…)’ as it is null
I am getting error
I want to clear and client data from the react-reducer on button click. Which method is going is used for that?
const client = useSelector((state: RootState) => state.client);
Appending to formData the new data of the newest uploaded file in FilePond
I am getting the newest uploaded file data, and I append it to the form Data. But, the API is not getting the same data to display it file Pond. I always get empty display.