Skip to content

feature: add proper infinite scrollΒ #29

@vnglst

Description

@vnglst

Add infinite scroll, goal:

  • reduce initial payload (e.g. load only first couple of kb of messages)
  • add pagination to scroll through entire message history

Using RAD

gun
  .get('user')
  .get('topic')
  .get('timestamp') 
  .put('hi there!')
  • and retrieving them:
gun
  .get('users')
  .map()
  .get('topic')
  .get({ ".": { "*": "2020-05-10" }, "%": 10000 // only 10 kb of messages on 10th of May
  .map()
  .on((msg, msgId) => {
    // or maybe use once here to avoid too many listeners? πŸ€” 
    // store in state
   })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions