-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Francois, could you please help me with this issue. I can't found a reason of double request in List-component:
https://drive.google.com/file/d/1qJkFUqUYNyjARSjCrUp2Mxgcrq2sQbZQ/view
You can see two problems:
- In first case it run double request with "tweed";
- In the second request in run double request with for previous search (tweed) and new search (smith)
How it works:
- Patients List is empty by default;
- User input patient lastname to the search field. This value saves in Store:


- List re-render by this condition:
if (userSearch) {
It increase key = key+1, and patients table refreshed.
Similar, it run request with previous value, and after this - run request with new value.
I don't understand how to prevent the first request.