When I render OfferList through React Router, The result is a rejected promise, saying:
`An error occured when handling the DONE state of a fetch`
{
message: "Not found",
name: "Not found",
status: 404
}
// serverEvents.js | |
export function FOO_CREATED (event) { | |
return { | |
type: 'RECEIVE_FOO', | |
payload: { | |
foo: event.foo | |
} | |
} | |
} |
// serverEvents.js | |
export function FOO_CREATED (event) { | |
return { | |
type: 'RECEIVE_FOO', | |
payload: { | |
foo: event.foo | |
} | |
} | |
} |
class User extends React.Component { | |
render() { | |
return ( | |
<a href="#" ref="goHome" onClick={this.goHome}> | |
Go Home | |
</a> | |
); | |
} | |
goHome() { | |
this.context.router.transitionTo('home'); |
let testTree = require('react-test-tree'); | |
class Foo extends React.Component { | |
render() { | |
return ( | |
<div className="Foo"> | |
<Bar ref="bar1" /> | |
<Bar ref="bar2" /> | |
</div> | |
); |
let testTree = require('react-test-tree'); | |
class Bar extends React.Component { | |
render() { | |
return ( | |
<div className="Bar"> | |
<span className="Bar-name" ref="name"> | |
{this.props.name} | |
</span> | |
</div> |
let testTree = require('react-test-tree'); | |
class LoginPage extends React.Component { | |
render() { | |
return ( | |
<form className="LoginPage"> | |
<input type="email" ref="email" value={this.state.email} /> | |
<input type="password" ref="password" value={this.state.password} /> | |
<input type="submit" ref="login" value="Login" /> | |
</form> |
let TestUtils = require("react/addons").addons.TestUtils; | |
class LoginPage extends React.Component { | |
render() { | |
return ( | |
<form className="LoginPage"> | |
<input type="email" value={this.state.email} /> | |
<input type="password" value={this.state.password} /> | |
<input type="submit" value="Login" /> | |
</form> |
var UserStore = Marty.createStore({ | |
id: 'UserStore', | |
getInitialState() { | |
return Immutable.Map() | |
}, | |
dehyrdate() { | |
return this.state.toJS() | |
}, | |
rehyrdate(state) { | |
this.replaceState(Immutable.fromJS(state)) |
var UserStore = require('./stores/userStore'); | |
var UserActions = require('./actions/userActions'); | |
class Application extends Marty.Application { | |
constructor() { | |
super(); | |
this.userStores = new UserStore({ | |
app: this, | |
foo: "bar" |
When I render OfferList through React Router, The result is a rejected promise, saying:
`An error occured when handling the DONE state of a fetch`
{
message: "Not found",
name: "Not found",
status: 404
}