Skip to content

Commit

Permalink
revert(RouterStore): Routes objects are now plain observable object a…
Browse files Browse the repository at this point in the history
…gain

Revert the breaking change introduced by c60fd24 . That change made all the routes object to
be @observable.ref, but I don't feel comfortable with that. Probably other users can inject things
into the @observable routes and observe those.
  • Loading branch information
LeonardoGentile committed Jun 15, 2017
1 parent 87399bf commit 7cd9a95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/modules/RouterStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import transitionPath from 'router5.transition-path';

class RouterStore {

@observable.ref route = null;
@observable.ref previousRoute = null;
@observable.ref transitionRoute = null;
@observable route = null;
@observable previousRoute = null;
@observable transitionRoute = null;
@observable transitionError = null;
@observable intersectionNode = '';
@observable toActivate = [];
@observable toDeactivate = [];
// @observable currentView;
router = null;
Expand Down

0 comments on commit 7cd9a95

Please sign in to comment.