Skip to content

A Demo showing an overview of the build states of GitHub branches page using lazy loading.

License

Notifications You must be signed in to change notification settings

lowsky/react-suspense-meetup-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Suspend with data-loading

There are these different modes how the page data are loaded:

screenshot.png

On the right side, there is a Cache-loading inspector "hitchcock" by @pombo, based on the work of Jared Palmer

Purpose: React Suspense - demo

List the (feature) branches of a GitHub repository with its last commit's

  • build status-es
  • linked PR
  • commit message and author
  • linked deployment

Getting started

After invoking this in a shell

git clone https://github.com/lowsky/react-suspense-meetup-demo
cd react-suspense-meetup-demo

yarn

then set up the github-token (see below: Setup GitHub Token )

before starting local dev mode via:

yarn dev

This runs Next.js in dev-mode

Now, you can open the home http://localhost:3000 in your browser.

Have fun!

setupGithubToken

You need to create your own github-token (see https://github.com/settings/tokens/) and store it locally in .env file

# create an .env file with this content ...
GITHUB_TOKEN=XXX

# ... and replace the XXX with your API key
# typically something like
# GITHUB_TOKEN=ghp_....

Stack

License

Licensed under the Apache License 2.0, Copyright ©️ 2023 Robert Hostlowsky. See LICENSE for more information.

About

A Demo showing an overview of the build states of GitHub branches page using lazy loading.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published