Sorry, subscriptions should be: subscriptions : Model -> Sub Msg subscriptions model = Sub.batch [ studentsLoaded StudentsLoaded , coursesLoaded CoursesLoaded ] Also, this does not work for types with Date or union members (limitations of ports).
On Tuesday, October 4, 2016 at 6:40:08 AM UTC-5, Vojtěch Král wrote: > > > > Dne čtvrtek 29. září 2016 1:34:40 UTC+2 Kasey Speakman napsal(a): >> >> In the shorter term, my prevailing alternative to decoding in 0.17 is >> just to use ports to launder the JSON into clean Elm types, since ports are >> automatically decoded. >> > > I have the same problem. Would someone be so kind as to give an example of > how to launder the JSON via ports like this? Do you just rut the data > through a port, or do you do ajax in JS? > Thanks! > -- 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.
