Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 2.11 KB

README.md

File metadata and controls

68 lines (43 loc) · 2.11 KB

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.