kachnitel / RideTime

Mountain bike social riding app
3 stars 0 forks source link

Refactor stores Constructors #52

Closed kachnitel closed 4 years ago

kachnitel commented 4 years ago

The store knows its own entity type, singleton doesn't need to know it and pass it back in constructor.

constructor (provider, EntityClass, applicationStore: ApplicationStore) {
    super(provider, EntityClass)
constructor (provider, applicationStore: ApplicationStore) {
    super(provider, User)

Working, but jest fails:

should move ID from requests to friends

    Trying to get entity User:undefined before it is initialized

getting currentUser

kachnitel commented 4 years ago

Done: c128b03