We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I'm trying to do a simple app just for testing purposes
I have a publication on my meteor server:
Meteor.publish('pokemons', function(type) { let query = type ? { type: type } : {}; return Pokemons.find(query); });
On my RN app:
let types = [ 'fire', 'water', 'grass' ]
constructor(props) { super(props); this.state = { currentType: 0 } }
startMeteorSubscriptions() { Meteor.subscribe('pokemons', types[this.state.currentType]); }
_handlePress() { let currentType = this.state.currentType; currentType++; currentType = currentType % types.length; this.setState({ currentType }) }
The subscription is changing correctly when the state is changed... but:
<MeteorListView collection="pokemons" selector={{type: types[this.state.currentType]}} renderRow={this.renderItem} />
The selector on MeteorListView does not respond to changes on the state... it keeps filtering by the first selector passed to it (types[0] -> 'fire')
The text was updated successfully, but these errors were encountered:
Oh you are absolutely right !
Thank you for warning me.
Fixing it soon ;)
Sorry, something went wrong.
Done ! Available in 1.0.0-beta21
Thank you! Glad to know that I contributed to this awesome project
No branches or pull requests
Hi. I'm trying to do a simple app just for testing purposes
I have a publication on my meteor server:
On my RN app:
The subscription is changing correctly when the state is changed... but:
The selector on MeteorListView does not respond to changes on the state... it keeps filtering by the first selector passed to it (types[0] -> 'fire')
The text was updated successfully, but these errors were encountered: