This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
6 years ago
|
react-deep-force-update
|
||
|
=========================
|
||
|
|
||
|
[![build status](https://img.shields.io/travis/gaearon/react-deep-force-update/master.svg?style=flat-square)](https://travis-ci.org/gaearon/react-deep-force-update)
|
||
|
[![npm version](https://img.shields.io/npm/v/react-deep-force-update.svg?style=flat-square)](https://www.npmjs.com/package/react-deep-force-update)
|
||
|
[![npm downloads](https://img.shields.io/npm/dm/react-deep-force-update.svg?style=flat-square)](https://www.npmjs.com/package/react-deep-force-update)
|
||
|
|
||
|
Force-updates React component tree recursively.
|
||
|
|
||
|
**Don’t use this in your application code!**
|
||
|
|
||
|
You’ll only need this if you’re writing a React development tool or library like [React Proxy](https://github.com/gaearon/react-proxy) and you want to enforce a deep update regardless of what component classes have to say.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```
|
||
|
npm install --save react-deep-force-update
|
||
|
```
|
||
|
|
||
|
Requires React 0.13 and newer.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
import React from 'react'; // or 'react-native'
|
||
|
import getDeepForceUpdate from 'react-deep-force-update';
|
||
|
|
||
|
const deepForceUpdate = getDeepForceUpdate(React);
|
||
|
const instance = React.render(<Something />);
|
||
|
|
||
|
// Will force-update the whole rendered tree
|
||
|
// even if components in the middle of it
|
||
|
// define a strict shouldComponentUpdate().
|
||
|
deepForceUpdate(instance);
|
||
|
```
|
||
|
|
||
|
## Credits
|
||
|
|
||
|
This project is based on the [code written by @syranide](https://github.com/gaearon/react-hot-api/commit/b3d6059a17407ef44765814ce06b36716d110041).
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|