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
Describe the bug
Unnecessary API calls and re-rendering occur when entering the first digit into the PhoneNumber field. Additionally, the Patient page causes re-rendering when the search field is initially empty, and changing options also triggers a re-render.
To Reproduce
Steps to reproduce the behavior:
Go to the 'Facilities' page.
Then go to the 'Patient' page.
Open the network tab.
Put one digit inside the PhoneNumber field, change the option, or change the country code.
Notice in the network tab that an unnecessary API call is being made.
Expected behavior
For null values or when changing options, the API call should not be made. This is not expected behavior.
**Screenshots **
one digit input inside phonenuberfield
while changing option
while changiong country code
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Desktop (please complete the following information):
OS: windows
Browser chrome
Version - latest
Additional context
go to the facility page then come to patient page to reproduce the issue
The text was updated successfully, but these errors were encountered:
Describe the bug
Unnecessary API calls and re-rendering occur when entering the first digit into the PhoneNumber field. Additionally, the Patient page causes re-rendering when the search field is initially empty, and changing options also triggers a re-render.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For null values or when changing options, the API call should not be made. This is not expected behavior.
**Screenshots **
one digit input inside phonenuberfield
while changing option
while changiong country code
Desktop (please complete the following information):
Desktop (please complete the following information):
Additional context
go to the facility page then come to patient page to reproduce the issue
The text was updated successfully, but these errors were encountered: