Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Notice
- preventDefault :: Notice -> IO ()
- isDefaultPrevented :: Notice -> Bool
- stopPropagation :: Notice -> IO ()
- isPropagationStopped :: Notice -> Bool
Documentation
Every event in React is a synthetic event, a cross-browser wrapper around the native event.
which reused from a pool.
So it is dangerous to keep a reference to a Notice
since it may expire and contain
other things without you knowing.
All relevant data from the Notice
must be consumed as soon you get one.
That is, Notice
must only be used in the first part of handleEvent
.
It is not an instance of NFData and so cannot be returned into the second lazy part of handleEvent
preventDefault :: Notice -> IO () Source #
isDefaultPrevented :: Notice -> Bool Source #
stopPropagation :: Notice -> IO () Source #
isPropagationStopped :: Notice -> Bool Source #