The story around this has changed.

If you want to pass some data into Elm from JS once, on initialization, you
are now served by:
http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-App#programWithFlags

2016-08-17 12:48 GMT+02:00 Wei Tang <sorp...@gmail.com>:

> Hi,
>
> I'm trying to define an "incoming port" that will *only be called once*
> when the app starts. I read some tutorials (http://danielbachler.de/2016/
> 02/26/ports-in-elm.html) and it says I can define a "non-signal" type
> port to do this. However, I get this error:
>
> 8| port graphName : String
>    ^^^^^^^^^^^^^^^^^^^^^^^
> You are saying it should be:
>
>     String
>
> But you need to use the particular format described here:
> <http://guide.elm-lang.org/effect_managers/>
>
> But I didn't find any useful information in the provided links.
>
> Any help would be appreciated.
>
> -- Wei
>
> --
> 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+unsubscr...@googlegroups.com.
> 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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to