hunt-framework / hayoo

Hackage search engine
56 stars 9 forks source link

Next button with weird behavior #31

Closed UweSchmidt closed 10 years ago

UweSchmidt commented 10 years ago

The next (page) button shows some weird behavior. Try e.g. foldl stringmap, this gives a single result, pressing the next button appends this single result a 2. time.

For a query with more results, e.g. abc the effect is somewhat similar, pressing next appends all already shown result and a few more.

sebastian-philipp commented 10 years ago

This may be related to https://github.com/hunt-framework/hunt/issues/87

UweSchmidt commented 10 years ago

My guess is, the getPage function in the hayoo server isn't initialized correctly. When e.g. searching for abc and pressing next the first time, the already displayed results are duplicated and the real 2. page is appendend, so the 1. page is shown twice. When pressing next again, the 3. page is correctly appendend, same holds for the following pages.