Closed yani- closed 9 years ago
In the following sample, the output from pending state stays on the page after the request is complete - done state has been reached. expected output:
<div>file</div>
actual output:
<div>file</div> <div>loading</div>
var File = React.createClass({ render: function () { return ( <div>{this.props.file}</div> ); } }); module.exports = Marty.createContainer(File, { listenTo: [FileStore], fetch: { file: function () { return FileStore.for(this).getFile(); } }, pending: function () { return ( <div>loading</div> ); }, failed: function (error) { return <div>{error}</div>; } });
Looking into this, will get back to you asap
Sorry for the delay in getting to this. I've just tried to replicate but can't. What version of Marty are you using?
Closing due to inactivity.
In the following sample, the output from pending state stays on the page after the request is complete - done state has been reached. expected output:
actual output: