Javascript – useSelector value is still null inside handleSubmit button in React
My code flow is that a user fills the form and submits it which goes to action calling the API and then it returns the postId and stores it in the reducer. Now my main React component has useSelector to…