Skip to content
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

Error handling on invalid permissions #121

Open
alexvdvalk opened this issue Aug 22, 2023 · 3 comments
Open

Error handling on invalid permissions #121

alexvdvalk opened this issue Aug 22, 2023 · 3 comments

Comments

@alexvdvalk
Copy link

alexvdvalk commented Aug 22, 2023

In the <Doc> component, if i pass an invalid ref, I get an error in the console, but currently, there is no way to show an error back to the user.

I suspect the same might go for the <Collection> component.

@JeremyVoisin
Copy link
Contributor

@alexvdvalk, could you please give more details about the component you are facing the issue with? Is your issue about StorageList? UploadTask? Other?

@alexvdvalk
Copy link
Author

@alexvdvalk, could you please give more details about the component you are facing the issue with? Is your issue about StorageList? UploadTask? Other?

Sorry, github removed the component names. I've updated the original post

@JeremyVoisin
Copy link
Contributor

JeremyVoisin commented Aug 22, 2023

Thanks for the update! In my opinion, the best way to handle errors is to decompose the store state to hold errors when there is some. I will submit a PR with this new feature tomorrow. In the meantime, I will let @codediodeio give his thought on this approach 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants