-
Notifications
You must be signed in to change notification settings - Fork 142
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
ready
property for <firebase-document>
and <firebase-query>
#290
Comments
@andrewspy let me see what we can do. You can also do a PR for it if you have time. So the use case for it are:
So will it be true always after it has retrieved its first data (even if it is null)? |
@tjmonsi Thanks for looking into this! I don't think I am skillful enough to do a PR, but I can help do the testing. Personally, I would like
It should always be |
I was thinking of using exists which is part of the spec but it also means that either the data is not yet ready or null. Let me check the spec again and see what I can do |
I think |
@tjmonsi Any findings on using |
@andrewspy the best way was to connect it via As for |
@tjmonsi Any update on |
@tjmonsi Friendly ping on |
I have tried out the |
Just found out that in order for Since |
Can we have a
ready
boolean property which will betrue
when data has at least been fetch once (much like in the firestore branch)? I have seen similar proposal of usingexists
in #33, but it's not exactly same asready
.The use case that I have is for access control, which I need to grant permission to the user when the path/data is ready. Without knowing if the data is ready, user will always see a brief "Permission denied" page until the data has been fetched, which is not a great user experience. Thanks!
The text was updated successfully, but these errors were encountered: