-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
Description
i just updated to react 19 and react native 0.79.6.
when i call data and get the returned data in useEffect, i have set value in formik like this:
useEffect(() => {
carStore.getCarByID(car?.id, (carRespone: GetCarByIDResponse) => {
console.log("carrr", carRespone)
ref.current.setFieldValue('carName', carRespone?.carName);
ref.current.setFieldValue('brandName', carRespone?.brandName);
ref.current.setFieldValue('brandID', carRespone?.brandID);
ref.current.setFieldValue('driverID', carRespone?.driverID);
},[]}
Before that, I used react 18 and 0.73.6 and it was still stable