Pixanthropy / pixanthropy-web

0 stars 0 forks source link

Multiple non-critical errors encountered while creating a memento. #74

Open vinneyk opened 7 years ago

vinneyk commented 7 years ago
vinneyk commented 7 years ago

The duplicate memento in the feed is due to the API being called to fetch the next page of results by virtue of the memento being added to the end of the list. When the new memento is added to the end of the list, it scrolls to be in view which triggers the fetch. Since the fetch includes the timestamp param which predates the new memento, the new memento will be included in the next results set.

It would be ideal if the new memento could be added without calling the next page function but I'm not sure how to go about that with the scroll trigger...