Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
[KFI]fix(Store): fixed authentication state subscription initializati…
Browse files Browse the repository at this point in the history
…on (with the latest state inclu
  • Loading branch information
gallayl committed Jul 12, 2018
1 parent 8727468 commit 09c4d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const createSensenetStore: <T>(options: CreateStoreOptions<T>) => Store<T

repo.authentication.state.subscribe((state) => {
store.dispatch(Actions.loginStateChanged(state))
})
}, true)

repo.authentication.currentUser.subscribe((user) => {
store.dispatch(Actions.userChanged(user))
Expand Down

0 comments on commit 09c4d9f

Please sign in to comment.