Upgrade Lerna and require prettier. Some format changes

This commit is contained in:
Timothy Farrell 2018-08-22 15:22:59 -05:00
parent daaa317f49
commit ee4edf7e55

View File

@ -6,8 +6,8 @@ and derived state.
# [property](./src/property.js) # [property](./src/property.js)
A `property` is a simple value store that can report when its value changes. It is good for wrapping A `property` is a simple value store that can report when its value changes. It is good for wrapping
external values passed into a component so compute types can depend on them and only recompute external values passed into a component so compute types can depend on them and only recompute when
when these values change. It can also be used to receive events such as _window.onresize_ to always these values change. It can also be used to receive events such as _window.onresize_ to always
provide the current viewport size. provide the current viewport size.
## Usage ## Usage
@ -174,7 +174,9 @@ const getToken = stream(
### Read ### Read
```js ```js
if (await getToken()) { /* do stuff with the token */ } if (await getToken()) {
/* do stuff with the token */
}
``` ```
Call it to receive the stored value, recomputing if necessary. Call it to receive the stored value, recomputing if necessary.