I have a react functional component, I want the component to re-render when the state coming from the store is updated.
I want the component to re-render when the value of logoPic
variable is updated. The value is coming from the redux store(fetched using useSelector
hook).
const { user: { downloadLink, bucketName, timeStamp, logoPic, organizationName, logoName, }, } = useSelector((state) => state.loginReducer);