Skip to content

setFieldValue error #4041

@duonghungit24

Description

@duonghungit24

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions