Skip to content

Instantly share code, notes, and snippets.

@andyrichardson
Last active July 7, 2021 14:07
Show Gist options
  • Save andyrichardson/fc51daddfd6113049d71a2b0ed40965d to your computer and use it in GitHub Desktop.
Save andyrichardson/fc51daddfd6113049d71a2b0ed40965d to your computer and use it in GitHub Desktop.

07/07/21

Events Pagination

Peek.2021-07-06.11-17.mp4

PR for using cursor based pagination for fetching apps.

  • Dealt with a lot of pagination methods on Urql
  • Follows Relay Cursor Connections Specification
    • We recommend to Urql users
    • High adoption
    • Covers basically all use cases (e.g. Github comments)
  • Wrote up different use cases for cursor based pagination - link
  • Previously wrote series on matching the spec to DynamoDB cursors - link

Lazy loading

Screenshot from 2021-06-30 17-57-07

Before:

  • Fetch all JS on the site
  • Wait for it all to load
  • Render

Screenshot from 2021-06-30 17-52-39

After:

  • Fetch initial routing/auth js
  • Fetch js for target route
  • Render

Login page

Screenshot from 2021-07-07 14-41-08

Updated designs (courtesy of Chris)

Proposals for dashboard

Peek.2021-07-07.13-33.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment