meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

loggedIn and loggedOut fire loggingIn and logginOut events #151

Closed jankapunkt closed 1 month ago

jankapunkt commented 8 months ago

Describe the bug

  _startLoggingIn() {
    this._reactiveDict.set('_loggingIn', true);
    Data.notify('loggingIn');
  },
  _startLoggingOut() {
    User._isLoggingOut = true;
    Data.notify('loggingOut');
  },
  _endLoggingIn() {
    this._reactiveDict.set('_loggingIn', false);
    Data.notify('loggingIn');
  },
  _endLoggingOut() {
    User._isLoggingOut = false;
    Data.notify('loggingOut');
  },

it's not determinable, at which method the even has fired as they are clearly the same.

Expected behavior It should be distinguishable at which function the events fired. Proposed change would be to use clear naming:

  _startLoggingIn() {
    this._reactiveDict.set('_loggingIn', true);
    Data.notify('loggingIn');
  },
  _startLoggingOut() {
    User._isLoggingOut = true;
    Data.notify('loggingOut');
  },
  _endLoggingIn() {
    this._reactiveDict.set('_loggingIn', false);
    Data.notify('loggedIn');
  },
  _endLoggingOut() {
    User._isLoggingOut = false;
    Data.notify('loggedOut')
  },
github-actions[bot] commented 6 months ago

Closing this issue due to no activity. Feel free to reopen.

github-actions[bot] commented 4 months ago

Closing this issue due to no activity. Feel free to reopen.

github-actions[bot] commented 2 months ago

Closing this issue due to no activity. Feel free to reopen.