0.1.5 • Published 5 years ago

react-connectivity v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-connectivity

Build Status npm version

A react overlay component with connection checks.

Motivation

I wanted to build a system monitoring interface with multiple panes from different endpoints. From which I need indicators for connection failures and reconnections.

Demo

Link

Installation and Usage

yarn add react-connectivity
import Connectivity from 'react-connectivity'

<div className="your wrapper">
  <Connectivity url="your endpoint" interval=3000 />
  ...
</div>

Design

open for discussion.

Pattern?

Observable pattern polling; hooks for component side effects.

Styling?

The component will add a overlay relative to the outer element.

Currently using plain CSS, plan to migrate to CSS-in-JS for exposing more sytling apis.

Testing?

Basic unit test for component, plan to test Observables.

Caveats

  • With default timeout by 3 seconds, slower-than-3G network might be treated as disconnected.

Related

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago