You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stores the entire state of the form in the above object and passes it down to the children as props
it has the following children
VehicleDetails - stores the information about the vehicle
OwnerDetails - stores the information about the owner
UserDetails - stores the user part of owner
KycDetails - stores the kyc part of owner
DriverDetails - stores the information about the driver
UserDetails - stores the user part of driver
KycDetails - stores the kyc part of driver
how should i approach state management of such a form right now i pass the onChange functions as props
to the parent and the parent state is changed on every keyStroke which is an issue to the performance as well since the entire form gets re-rendered on every keystroke
I have access to global state management library like apollo-client's cache and redux
below is the code to give you a better understanding of the flow