Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events duplicates when using EventProvider.stream #54

Open
repsajanboy opened this issue Oct 4, 2020 · 0 comments
Open

Events duplicates when using EventProvider.stream #54

repsajanboy opened this issue Oct 4, 2020 · 0 comments
Labels
T: Fix Type: :bug: Bug Fixes

Comments

@repsajanboy
Copy link

Hi i am using EventProvider.stream(eventGetter (range) => Stream.fromFuture(loadEvents(range.start))). My logic is to provide a event dates from api which i call in loadEvents() method Im using range.start to get the currently visible start date then im using it as a parameter to my api. For example today is Oct. 5 and it is set as my initial date and it is start on currentlyVisibleDates my visible range is set to weekly so I pass Oct 5 to my api to get the events, then when I scroll horizontally the start now must be Oct. 12 and the value must pass to the api was Oct. 12 my problem was when I am scrolling to the next week Im getting all other dates in between ling Oct. 6, 7, 8, 9, 10, 11, and the only thing I needed was Oct. 12. and then it became a problem for building the events see screenshot

Screenshots
Screenshot_20201004_003509_com justlearn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Fix Type: :bug: Bug Fixes
Projects
None yet
Development

No branches or pull requests

1 participant