react useSelector set loading code example Example: useDispatch() useDispatch({ type: '', playload });