Module
Flame.Application.EffectList
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
The Elm like way to run a Flame application
The update function returns an array of side effects
#ListUpdate Source
type ListUpdate model message = model -> message -> Tuple model (Array (Aff (Maybe message)))
#Application Source
type Application model message = App model message (init :: Tuple model (Array (Aff (Maybe message))), update :: ListUpdate model message)
Application
contains
init
– the initial model and a list of messages to invokeupdate
withview
– a function to update your markupupdate
– a function to update your modelsubscribe
– list of external events
#noMessages Source
noMessages :: forall model message. model -> Tuple model (Array (Aff (Maybe message)))
#mount Source
mount :: forall id model message. Show id => QuerySelector -> AppId id message -> Application model message -> Effect Unit
Mount a Flame application that can be fed arbitrary external messages
#mount_ Source
mount_ :: forall model message. QuerySelector -> Application model message -> Effect Unit
Mount a Flame application on the given selector
#ResumedApplication Source
type ResumedApplication model message = App model message (init :: Array (Aff (Maybe message)), update :: ListUpdate model message)
ResumedApplication
contains
init
– initial list of messages to invokeupdate
withview
– a function to update your markupupdate
– a function to update your modelsubscribe
– list of external events
#resumeMount Source
resumeMount :: forall id model message. UnserializeState model => Show id => QuerySelector -> AppId id message -> ResumedApplication model message -> Effect Unit
Mount on the given selector a Flame application which was rendered server-side and can be fed arbitrary external messages
#resumeMount_ Source
resumeMount_ :: forall model message. UnserializeState model => QuerySelector -> ResumedApplication model message -> Effect Unit
Mount a Flame application on the given selector which was rendered server-side
- Modules
- Flame
- Flame.
Application. EffectList - Flame.
Application. Effectful - Flame.
Application. Internal. Dom - Flame.
Application. Internal. PreMount - Flame.
Application. NoEffects - Flame.
Html. Attribute - Flame.
Html. Attribute. Internal - Flame.
Html. Element - Flame.
Html. Event - Flame.
Internal. Equality - Flame.
Renderer. Internal. Dom - Flame.
Renderer. String - Flame.
Serialization - Flame.
Subscription - Flame.
Subscription. Document - Flame.
Subscription. Internal. Create - Flame.
Subscription. Internal. Listener - Flame.
Subscription. Unsafe. CustomEvent - Flame.
Subscription. Window - Flame.
Types