StackedCards swipe event issue
Application Type
Mobile, Reactive

Hi everyone,

I was following the stackedcards pattern and after checking it couple of times I believe there is a bug in the implementation. 

Scenario: After swipe event (left or right) do something with the employee ID. In the pattern it is deleting the employee from the database.

Expected: Employee deleted by ID 

Current: Only first card therefore first employee ID is deleted. It looks like that GetEmployees.List.Current.Id  is not working properly. It's always the first one.

Did I miss something? Can somebody check this behaviour?

Thank you and best regards

Solution

Solved it by using current position of the card and getting the ID.

GetEmployees.List[CurrentPosition].Employee.Id

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.