Skip to content

Double request in the Patients List #97

@BogdanScherban

Description

@BogdanScherban

@fzaninotto

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:

  1. In first case it run double request with "tweed";
  2. In the second request in run double request with for previous search (tweed) and new search (smith)

How it works:

  1. Patients List is empty by default;
  2. User input patient lastname to the search field. This value saves in Store:
    Screenshot from 2019-07-11 12-22-14
    Screenshot from 2019-07-11 12-23-08
  3. List re-render by this condition:

    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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions