useDispatch to get the updated status code example
Example: useSelector
const result: any = useSelector(selector: Function, equalityFn?: Function)
Copied
const result: any = useSelector(selector: Function, equalityFn?: Function)
Copied