DEV Community

Discussion on: #30daysofelm Day 20: Getting the browser's width and height

Collapse
 
kristianpedersen profile image
Kristian Pedersen

Thanks for the link! Yeah, that's an area I've been confused by, particularly when reading documentation.

I was kind of frustrated by the Task x Viewport, but reading the documentation again now, I see that it refers to an unsuccessful Task execution:

In each case we have a Task that will resolve successfully with an a value or unsuccessfully with an x value.

package.elm-lang.org/packages/elm/...

As I suspected, coming back to this project after having slept well, things make a lot more sense to me now.