I hereby claim:
- I am dave-nicholas on github.
- I am davenicholas (https://keybase.io/davenicholas) on keybase.
- I have a public key ASBEuMp7BPSB0mp_yrYtbfRBlJKjecPXtunP8EHp16TeUwo
To claim this, I am signing this object:
const typeDefs = ` | |
type River { | |
id: Int | |
name: String | |
streams: [Stream] | |
} | |
type Stream { | |
id: Int | |
name: String | |
river: River |
const resolvers = { | |
River: { | |
async streams(river) { | |
return await Streams.find({ riverId: river.id }).toArray(); | |
} | |
}, | |
Stream: { | |
async river(stream) { | |
return await Streams.findOne({ riverId: stream.riverId }); | |
}, |
I hereby claim:
To claim this, I am signing this object:
import React from 'react'; | |
import { withState, compose, lifecycle } from 'recompose'; | |
export default componentToImport => { | |
const state = withState('component', 'setComponent', null); | |
const hooks = lifecycle({ | |
async componentDidMount() { | |
const { default: C } = await componentToImport(); | |
this.props.setComponent(() => props => <C {...props} />); |
// file: streaming_engine.js | |
// The _append method will call this method | |
/** | |
* Parse PRFT box. | |
* @param {!shaka.media.SegmentReference} reference | |
* @param {!shaka.extern.ParsedBox} box | |
* @private | |
*/ | |
parsePrft_(reference, box) { |