Hum… that sounds interesting. I'm not refactoring it right now, but gonna try this next time I go back to that code. Do you have any snippet as reference? Many thanks,
On Thu, Sep 15, 2016 at 8:40 AM Peter Damoc <[email protected]> wrote: > As a suggestion: > Don't modify the URL directly. Create some kind of helper function that > would allow you to navigate using a higher level of structure. > > I have the concept of Pages in my app (i.e. locations where certain parts > of the functionality gets accomplished). When I want to navigate, I > navigate to a Page (e.g. Home), not to a URL. > The helpers take care of the actual structure of the url. > > > > On Thu, Sep 15, 2016 at 2:18 PM, Eduardo Cuducos <[email protected]> > wrote: > >> Many thanks for you reply, Peter. >> >> Indeed changing that line to Cmd.none fix the issue. >> >> The reason why I (naïvely) added that Navigation.modifyUrl "" was to >> clean up a “invalid” URL. >> >> For example: if location is #/document/42, this is a valid entry point; >> but is the location happens to be mistyped as #/documnt/42 (typo, >> missing letter “e”) my idea was to clean up the URL ro return to the root >> of the application. >> >> Gonna try to find an alternative way to implement that now ; ) >> >> Once more, thank you very much, >> >> Ed >> >> On Wed, Sep 14, 2016 at 5:31 PM Peter Damoc <[email protected]> wrote: >> >>> On Wed, Sep 14, 2016 at 11:07 PM, Eduardo Cuducos <[email protected]> >>> wrote: >>> >>>> I have no clue about how to starting debugging this. Any ideas? >>>> >>> >>> Looks like a Navigation problem. You keep navigating to the same page >>> and create an infinite loop where the urlparser runs and you navigate in >>> urlUpdate and the urlparser runs again and again you navigate, etc. >>> >>> I would replace the following line: >>> >>> https://github.com/datasciencebr/jarbas/blob/master/jarbas/frontend/elm/Main.elm#L131 >>> with a simple Cmd.none for starters. >>> Could you give more details about what are you trying to do with that >>> line? >>> >>> >>> -- >>> There is NO FATE, we are the creators. >>> blog: http://damoc.ro/ >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Elm Discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Elm Discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > There is NO FATE, we are the creators. > blog: http://damoc.ro/ > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
