It works OK and displays the users it should. But it's only sort of "half reactive". If I update a user name in the DB, it correctly refreshes on the web page.
But if I remove that role from any of the users, it won't update and I need to refresh the page to view the updated list. I use this function server side to remove the role:
This was probably my mistake. Looks like if you want to have a collection reactivity, that line of code has to run in the meteor section and not in VUE's computed section.
Hi, not sure I am doing everything right, but I noticed this kind of problem on client...
I use
getUsersInRole
to list admins for my groups (scopes). The exact call looks like this:It works OK and displays the users it should. But it's only sort of "half reactive". If I update a user name in the DB, it correctly refreshes on the web page.
But if I remove that role from any of the users, it won't update and I need to refresh the page to view the updated list. I use this function server side to remove the role:
Roles.removeUsersFromRoles(users, ['USERS_VIEW', 'USERS_IMPERSONATE'], retailerId);
Do I use it a wrong way, or is this a bug? And if so, what's the best way to workaround it?