Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-delay-fallback

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-delay-fallback - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

lib/cjs/Delay/index.d.ts

@@ -6,3 +6,3 @@ import { FC, ReactNode } from 'react';

/** Component to render instead of children while waiting.*/
fallback?: JSX.Element;
fallback?: ReactNode;
/** Function to trigger on render. */

@@ -9,0 +9,0 @@ onRender?: (...args: Array<unknown>) => unknown;

@@ -49,3 +49,3 @@ "use strict";

timeout: prop_types_1.default.number,
fallback: prop_types_1.default.element,
fallback: prop_types_1.default.node,
onRender: prop_types_1.default.func,

@@ -52,0 +52,0 @@ children: prop_types_1.default.node.isRequired,

@@ -6,3 +6,3 @@ import { FC, ReactNode } from 'react';

/** Component to render instead of children while waiting.*/
fallback?: JSX.Element;
fallback?: ReactNode;
/** Function to trigger on render. */

@@ -9,0 +9,0 @@ onRender?: (...args: Array<unknown>) => unknown;

@@ -24,3 +24,3 @@ import React, { useState, useEffect } from 'react';

timeout: PropTypes.number,
fallback: PropTypes.element,
fallback: PropTypes.node,
onRender: PropTypes.func,

@@ -27,0 +27,0 @@ children: PropTypes.node.isRequired,

{
"name": "react-delay-fallback",
"version": "1.0.0",
"version": "1.0.1",
"description": "React component to delay children rendering",
"keywords": [],
"keywords": [
"react",
"delay",
"fallback",
"wait",
"render",
"suspend",
"defer"
],
"author": {

@@ -7,0 +15,0 @@ "name": "Jonathan Mataloni",

@@ -1,3 +0,7 @@

# react-library-boilerplate
# react-delay-fallback
![version](https://img.shields.io/npm/v/react-delay-fallback)
![size](https://img.shields.io/bundlephobia/min/react-delay-fallback)
![download](https://img.shields.io/npm/dm/react-delay-fallback)
React component to delay children rendering and show a fallback component while waiting

@@ -14,3 +18,3 @@

Compatible with React >=16.8.0\
Compatible with Node >=8.0.0\
Compatible with Node >=8.0.0

@@ -23,3 +27,3 @@ ## Feature

- Runtime type checking with prop-types and static with typescript declaration files
- Exaustive doc comments
- Exhaustive doc comments
- Tree shakable: exported with ESM modules

@@ -53,3 +57,3 @@ - Tested with available coverage report

```jsx
import { Delay } from 'react-delay-fallback;
import { Delay } from 'react-delay-fallback';

@@ -56,0 +60,0 @@ function App() {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc