It seems like we are going through some contortions to keep this.data up to date, which seems unnecessary given we can now call this.queryObservable.currentResult() in the render function to get the current data.
So I would suggest something like:
render() {
let data;
if (/*skipping*/) {
data = { loading: false, errors: null };
} else {
data = assign({}, this.queryObservable.currentResult());
// copy fields over from queryObservable
}
// now render wrappedComponent with data
}
@tmeasday YES!! I love this idea!
Most helpful comment
@tmeasday YES!! I love this idea!