You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a collection that requires an authenticated login to access. When I first view the collection in an un-authenticated state I of course do not get any content. If I subsequently authenticate, I expect the collection to populate with contents so useCollection will 'refresh'. However, this does not occur.
Is there a technique I can use to force useCollection to refresh content?
The text was updated successfully, but these errors were encountered:
@glenne sorry for the slow response. You're right and unfortunately this is the behaviour of the underlying SDK so there's not really anything that can be done in the library to resolve this automatically.
I'd suggest that you simply don't try and load the collection if the user is not authenticated. You could achieve this by only mounting the component that calls useCollection when the user is authenticated?
I'm going to close the issue as it's not something that can be fixed by the library, but I'm happy to help you work through the above suggestion if needs be.
I have a collection that requires an authenticated login to access. When I first view the collection in an un-authenticated state I of course do not get any content. If I subsequently authenticate, I expect the collection to populate with contents so useCollection will 'refresh'. However, this does not occur.
Is there a technique I can use to force useCollection to refresh content?
The text was updated successfully, but these errors were encountered: