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 upgraded from Meteor 2 with [email protected] to Meteor 3 with [email protected]. With the old package, where the roles were bound to the user object, calls to Roles.isUserInRole() worked reactively. We used this a lot to enable or disable app features based on roles. It was pretty impressive when we just added new features to a user in a Zoom session.
But now, the user has to reload the page to get the upated roles information, although I publish the role information like this:
import { Meteor } from 'meteor/meteor';
Meteor.publish(null, async function() {
if (!this.userId) return this.ready();
return Meteor.roleAssignment.find({ 'user._id': this.userId });
});
What is the best way to get back to the old reactivity in React? A hook maybe that works reactively?
The text was updated successfully, but these errors were encountered:
We, the Members of Meteor Community Packages take every issue seriously.
Our goal is to provide long-term lifecycles for packages and keep up
with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.
However, we contribute to these packages mostly in our free time.
Therefore, we can't guarantee your issues to be solved within certain time.
If you think this issue is trivial to solve, don't hesitate to submit
a pull request, too! We will accompany you in the process with reviews and hints
on how to get development set up.
Please also consider sponsoring the maintainers of the package.
If you don't know who is currently maintaining this package, just leave a comment
and we'll let you know
I upgraded from Meteor 2 with
[email protected]
to Meteor 3 with[email protected]
. With the old package, where the roles were bound to the user object, calls to Roles.isUserInRole() worked reactively. We used this a lot to enable or disable app features based on roles. It was pretty impressive when we just added new features to a user in a Zoom session.But now, the user has to reload the page to get the upated roles information, although I publish the role information like this:
What is the best way to get back to the old reactivity in React? A hook maybe that works reactively?
The text was updated successfully, but these errors were encountered: