RoadTripMoustache / kana_to_kanji

Simple application to learn Japanese kana (hiragana, katakana) and kanji
5 stars 1 forks source link

fix: Paginate Kanji and Vocabulary list to reduce display cost #118

Closed apomalyn closed 3 months ago

apomalyn commented 6 months ago

As a user, I want to have a smooth transition between the different tabs of the glossary.

Current behaviour

All the kanji and vocabulary fetched are displayed on their respective list, making even the newest phones struggle to display. We can see a little freeze when changing tabs rapidly.

Expected behaviour

Switching tabs should not freeze the render

What needs to be done

Implement an infinite scroll list (pagination of the data) for the Kanji and Vocabulary list.

Dev notes

Here is an example of implementation. In our case we don't need to fetch the data as we are currently retrieving everything but we still need to paginate the render to reduce the cost

Dependencies

Depends on: