-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
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
Using Queries w/ syncState wipes out everything not queried #252
Comments
@taykcrane Thanks for reporting this. I think that might be a bug in |
@qwales1 damn, I was hoping I missed something simple. I love the simplicity of syncState, so instead of separate methods for reading/writing, I may hold out and see if you indeed find a bug in syncState. Appreciate you looking into this so quickly. LMK if you need any more code from me. |
Did you find a way ? I have a similar problem, i have this architecture
this.ref = base.syncState( |
Hey Tyler,
Ran into an issue with re-base I can't seem to overcome. I have an array in state called "concerns", and when I sync it with firebase using the below code, and then make any Write operation, it wipes out everything not synced, i.e. anything that wasn't in my query.
In your documentation under "Using Firebase Queries", your example uses syncState and limits by a query. I don't understand how this works if, after syncing, firebase deletes all the unsynced queries. Seems to make the feature entirely useless. I hope I'm missing an easy fix here, can you please help?
The text was updated successfully, but these errors were encountered: