Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request #18 from kanishka-azimi/master
Browse files Browse the repository at this point in the history
Do not cache location
  • Loading branch information
evancz committed Oct 7, 2016
2 parents 3fef809 + 7133805 commit 0235cd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Navigation.elm
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ programWithFlags (Parser parser) stuff =
view model =
App.map UserMsg (stuff.view model)

location =
Native.Navigation.getLocation ()

init flags =
updateHelp UserMsg (stuff.init flags (parser location))
let
location = Native.Navigation.getLocation ()
in
updateHelp UserMsg (stuff.init flags (parser location))
in
App.programWithFlags
{ init = init
Expand Down

0 comments on commit 0235cd9

Please sign in to comment.