kiwicom / margarita

[not actively maintained] Mobile and Web application implementing Kiwi.com Tequila API
https://margarita.kiwi.com/
MIT License
208 stars 42 forks source link

PlacePicker should keep its own state #884

Closed jvaclavik closed 5 years ago

jvaclavik commented 5 years ago

Right now, when you add some place to selection, the context from PlacePicker is immediately changed and new request is send even without user confirmation.

There should be temporary internal state of the PlacePicker which will affect context after user "close the window" (which means confirm in this case).

Example: When you are on Results screen and you will select multiple items (like Prague, Brno, Ostrava), there will be 3 requests:

  1. Prague
  2. Prague and Brno
  3. Prague, Brno and Ostrava

    instead of one.

jvaclavik commented 5 years ago

Fixed in #906