I’m currently using React for my client. I’ve tried async/await. Does anyone have any suggestions?
EDIT: I’ve tried Tracker.nonreactive as well. Whatever I do, my function returns undefined, not even an error.
I’m currently using React for my client. I’ve tried async/await. Does anyone have any suggestions?
EDIT: I’ve tried Tracker.nonreactive as well. Whatever I do, my function returns undefined, not even an error.
Can you share a little more details?
I have Meteor + React and it works just fine, here is my code:
const handleLogoutClick = () => {
Meteor.logout(function (err) {
if (err) {
throw new Meteor.Error("Logout failed");
} else {
history.push('/login')
}
});
};
I’m using React Router