elm-reactor: debugFullscreen + JS-ports

160 views
Skip to first unread message

Thomas Weiser

unread,
Aug 26, 2014, 12:42:22 PM8/26/14
to elm-d...@googlegroups.com
Hi everyone! I'm playing with 0.13 and elm-reactor and stumbled on a problem combining debugging and ports for JS interop.

This works:
    Elm.fullscreen (Elm.Main, {myPort: ...});
and this works:
    Elm.debugFullscreen (Elm.Main, "Main.elm");

But this doesn't:
    Elm.debugFullscreen (Elm.Main, "Main.elm", {myPort: ...});
The signature of debugFullscreen is actually:
    function (module, moduleFile, hotSwapState)

So how do I tell Elm.debugFullscreen about my input ports?
Is there another way? Do I miss something?

Thanks!
Thomas

Evan Czaplicki

unread,
Aug 26, 2014, 12:49:20 PM8/26/14
to elm-d...@googlegroups.com, Michael James
+Michael

Ah, it looks like we did not support that case yet. I'm not sure if we'll have time to do this before the initial release. It should be easy to hook up the ports, but we also need to make sure that we do not send values out through ports when we are replaying old stuff. That second part is a bit trickier.

Do you mind opening an issue for this on elm-reactor?


--
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 elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Weiser

unread,
Aug 28, 2014, 3:45:56 PM8/28/14
to elm-d...@googlegroups.com, mic...@michaelbjames.com
Thanks. Further discussion in this issue
Reply all
Reply to author
Forward
0 new messages