Module
Flame.Application
- Package
- purescript-flame-lynx
- Repository
- easafe/purescript-flame-lynx
#Application Source
type Application model message = { model :: model, subscribe :: Array (Subscription message), update :: Update model message, view :: model -> Html message }Application contains
model– starting modelview– a function to update your markupupdate– a function to update your modelsubscribe– list of external events
#makeRoute Source
makeRoute :: forall model message id. Show id => AppId id message -> Application model message -> Route#makeGuardedRoute Source
makeGuardedRoute :: forall model message id targetId targetMessage. Show id => Show targetId => AppId id message -> Application model message -> Effect (Maybe (AppId targetId targetMessage)) -> RouteRedirect when the guard returns a different app ID; otherwise show the route
- Modules
- A
- Flame
- Flame.
Application - Flame.
Html. Attribute - Flame.
Html. Attribute. Internal - Flame.
Html. Element - Flame.
Html. Event - Flame.
Internal. Fragment - Flame.
Renderer. Internal. Mobile - Flame.
Renderer. String - Flame.
Serialization - Flame.
Subscription - Flame.
Subscription. Internal. GlobalEvent - Flame.
Subscription. Internal. Listener - Flame.
Subscription. Unsafe. CustomEvent - Flame.
Types