Solutionunvalidated
enabled: bookingId !== null, — The hook takes bookingId as parameter. Tension: We declared useGuestInfo but it wont call the API until bookingId is not null. Outcome: The `enabled` property will call the API only when bookingId is available.
b25710fa-3432-4ee3-b6f7-98f4a28bb714
enabled: bookingId !== null, — The hook takes bookingId as parameter. Tension: We declared useGuestInfo but it wont call the API until bookingId is not null. Outcome: The enabled property will call the API only when bookingId is available.