IK
Size: a a a
IK
CI
OR
CI
OR
CI
PF
IK
export default React.memo(SearchContainer, (prevProps, nextProps) => {
const areEqual =
prevProps.location.pathname === nextProps.location.pathname ? true : false
return areEqual
})V
VR
PF
export default React.memo(SearchContainer, (prevProps, nextProps) => {
const areEqual =
prevProps.location.pathname === nextProps.location.pathname ? true : false
return areEqual
})export default React.memo(SearchContainer, (prevProps, nextProps) => prevProps.location.pathname === nextProps.location.pathname)
N

PF
VR

useEffect изменения maskIK
export default React.memo(SearchContainer, (prevProps, nextProps) => prevProps.location.pathname === nextProps.location.pathname)
PF
N
useEffect изменения maskmask менялся при определенных условиях, а onChange, должен всегда срабатыватьVR
mask менялся при определенных условиях, а onChange, должен всегда срабатыватьif (condition) setMask()onChange(val)N
if (condition) setMask()onChange(val)useEffect не напишешь, тогда не факт что новое значение засетитсяV
