When i use Window.dimensions like this:
main = Signal.map show Window.dimensions
I instantly get (1381,812) which is sweet.
However, when I pass it through a complete MVU pattern with:
main = Signal.map view stateSignal
view state = show state
stateSignal = Signal.foldp update initialState input
input =
Signal.mergeMany [
Signal.map WindowSize Window.dimensions,
Signal.map MousePosition mousePosition ]
It starts with (0,0). I need to resize the browser in order for the Window.dimensions to emit a new value.
Why?
Where does the initial signalled value get lost?