Re:Elm 0.19 Broke Us
by loevborg on Sunday August 26, 2018 @08:12AM
(#17845587)
Check out this comment for an explanation of why Ports cannot possibly cover all use cases: https://www.reddit.com/r/elm/comments/99bzf8/elm_or_reasonml...
[ Parent
| on HN ]
Re:Elm 0.19 Broke Us
by big_elephant on Sunday August 26, 2018 @12:42PM
(#17846637)
hm i'm not sure why ports would not work in that use case (the keycloak one, right?). the port would be how you communicate between js and elm, so it looks like inside the js callbacks is where you would `send` that data through the port to elm
Agreed, it could work with Keycloak, or other 3rd party libraries, depending on the amount of collaboration between JS and Elm. My point was that some things that are simple when you can pass around promises suddenly get very complicated when all you have is ports and messages.
Re:Elm 0.19 Broke Us
by AlexCoventry on Sunday August 26, 2018 @08:36PM
(#17848719)
I came across an example which makes using ports sound a bit tedious (but suggests an alternative.) It's at the start of this talk:
Re:Elm 0.19 Broke Us
by big_elephant on Tuesday August 28, 2018 @12:19AM
(#17856528)
excellent video, thanks. custom elements are a very interesting alternative