Is it possible to access react state within withtracker? It doesnt seem to work for me, is it possible to make it work?
export default AppBar = withTracker(() => {
var handles = [
Meteor.subscribe(‘options’),
Meteor.subscribe(‘selection’),
];
const loading = !handles.every(handle => handle.ready());
const optionsReady = (loading && this.state.selection);
return {
loading,
games: loading ? null : Selections.find(),
draws: loading ? null : Options.find({selectionId: this.state.selection._id}),
};
})(AppBar);;