This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const duplicateAccountCheckMachine = Machine({ | |
id: "duplicateAccountCheck", | |
initial: "idle", | |
states: { | |
idle: { | |
on: { | |
OPEN: "started" | |
} | |
}, | |
started: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query FetchPlayerNotes { | |
# write query | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { query } from './RouteA'; | |
const loadRoute = () => import('./RouteA'); | |
// I want query to be duplicated in both chunks but I don't want the component exported as default to be included in this chunk. | |
// both are ES modules | |
// webpack currently merges these two into the same chunk. | |
<RelayRoute path="/route-a" query={query} component={loadRoute} /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
const Authenticated = React.createClass({ | |
propTypes: { | |
children: PropTypes.element.isRequired, | |
isAuthenticated: PropTypes.bool.isRequired, | |
history: PropTypes.object.isRequired, | |
}, | |
componentDidMount() { |