meteor-react-native icon indicating copy to clipboard operation
meteor-react-native copied to clipboard

loggedIn and loggedOut fire loggingIn and logginOut events

Open jankapunkt opened this issue 1 year ago • 2 comments
trafficstars

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')
  },

jankapunkt avatar Feb 14 '24 08:02 jankapunkt

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

github-actions[bot] avatar Apr 15 '24 04:04 github-actions[bot]

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

github-actions[bot] avatar Jun 17 '24 02:06 github-actions[bot]