Skip to content

Reflect Admin dashboard actions in UI #266

Answered by ganigeorgiev
jimafisk asked this question in Q&A
Discussion options

You must be logged in to vote

The realtime subscriptions are supported only for the collection records (including the user profiles collection).

If your user model has changed or has been deleted after authentication, then there is currently no easy way to get the changes without sending a refresh() call (PocketBase is completely stateless and doesn't have sessions, even the tokens are not stored in the db).

client.authStore.onChange() is triggered only when your local data changes (eg. on client.authStore.clear() or client.authStore.save(), which is called automatically on authentication, refresh, password confirmation, email verification, etc.).

If you want your clients to have always an up-to-date state of their us…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jimafisk
Comment options

Answer selected by jimafisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants