# react-fast-unmount

> this is react fast unmount

Latest version **2.0.8** (published 2018-11-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-fast-unmount
pnpm add react-fast-unmount
yarn add react-fast-unmount
bun add react-fast-unmount
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.8 |
| Published | 2018-11-28 |
| First published | 2018-11-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | amingming |
| Maintainers | amingming |

## Links

- npm: https://www.npmjs.com/package/react-fast-unmount
- Repository: https://github.com/zouxiaomingya
- npm.io page: https://npm.io/package/react-fast-unmount

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.6.3

## Recent versions

- 2.0.8 (latest) — 2018-11-28
- 2.0.7 — 2018-11-28
- 2.0.6 — 2018-11-28
- 2.0.5 — 2018-11-28
- 2.0.4 — 2018-11-28
- 2.0.3 — 2018-11-28
- 2.0.2 — 2018-11-28
- 2.0.1 — 2018-11-28
- 2.0.0 — 2018-11-28
- 1.0.0 — 2018-11-28

## README

### 在数据加载还没完成 或者执行一些类似onscroll方法 ，组件销毁时后还改变数据报错如下：
   > Can't perform a React state update on an unmounted component. 
   > This is a no-op, but it indicates a memory leak in your application. 
   > To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

### 直接引用
```jsx
import unject_unmount  from 'react-fast-unmount'
```
    然后再 自己需要的类上 @unject_unmount 如下
```jsx
@unject_unmount
class Home extends PureComponent {
    ....
}
```
#### 当然 当你使用Decorator 修饰符的 你可能会遇到这样的报错

    > SyntaxError: C:UsersAdministratorDesktoptetestsrcapp.js: Support for the experimental syntax 'decorators-legacy' isn't currently enabled (15:1):

# 那么欢迎点击这里进入[我的github](https://github.com/zouxiaomingya/react-fast-unmount).

---
_Source: https://npm.io/package/react-fast-unmount · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
