alt icon indicating copy to clipboard operation
alt copied to clipboard

[Doc missing] src/store/StoreMixin.js

Open qbig opened this issue 8 years ago • 4 comments

In the official favourite location source,

class LocationStore {
  constructor() {
    this.locations = [];
    this.errorMessage = null;

    this.bindListeners({
      handleUpdateLocations: LocationActions.UPDATE_LOCATIONS,
      handleFetchLocations: LocationActions.FETCH_LOCATIONS,
      handleLocationsFailed: LocationActions.LOCATIONS_FAILED,
      setFavorites: LocationActions.FAVORITE_LOCATION
    });

    this.exportPublicMethods({
      getLocation: this.getLocation
    });

    this.exportAsync(LocationSource);
  }
//...
}

"exportAsync" cannot be found anywhere in the documentation.

qbig avatar Nov 01 '15 11:11 qbig

Documentation exists on github and on the altjs website. It looks like exportAsync is just an alias for registerAsync.

That said, it is worth nothing that data sources are actually pending removal from alt core to be moved into their own repository. This move should help make the documentation more visible.

jdlehman avatar Nov 01 '15 15:11 jdlehman

@goatslacker @jdlehman, where is this new data source repository? It's not referenced in the PR.

Prophet32j avatar Dec 01 '15 04:12 Prophet32j

It doesn't exist yet

goatslacker avatar Dec 01 '15 05:12 goatslacker

any update on this ?

pshoukry avatar Dec 29 '15 15:12 pshoukry