Javascript – Unable to use useSelector and useDispatch in export const function
I am unable to use useSelector and useDispatch in export const function. export const StartTelecalling = (piopiy, userId, password) => { const { modal, isTestCall, isOnline } = useSelector((state) => state.calls); const dispatch = useDispatch(); piopiy.login(userId, password, "sbcind.telecmi.com"); console.log("login Initiated..............");…