reflex-dom-core-0.5: Functional Reactive Web Apps with Reflex

Safe HaskellNone
LanguageHaskell98

Reflex.Dom.Prerender

Description

Render the first widget on the server, and the second on the client.

Synopsis

Documentation

class Prerender js t m | m -> t js where Source #

Minimal complete definition

prerender

Associated Types

type Client m :: * -> * Source #

Monad in which the client widget is built

Methods

prerender :: m a -> (PrerenderClientConstraint js t (Client m) => Client m a) -> m (Dynamic t a) Source #

Render the first widget on the server, and the second on the client. The hydration builder will run *both* widgets, updating the result dynamic at switchover time.

Instances
(Prerender js t m, Monad m) => Prerender js t (InputDisabledT m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (InputDisabledT m) :: * -> * Source #

(Prerender js t m, Monad m, ReflexHost t) => Prerender js t (PostBuildT t m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (PostBuildT t m) :: * -> * Source #

Methods

prerender :: PostBuildT t m a -> (PrerenderClientConstraint js t (Client (PostBuildT t m)) -> Client (PostBuildT t m) a) -> PostBuildT t m (Dynamic t a) Source #

(Prerender js t m, Monad m, Reflex t, MonadFix m, Group q, Additive q, Query q, Eq q) => Prerender js t (QueryT t q m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (QueryT t q m) :: * -> * Source #

Methods

prerender :: QueryT t q m a -> (PrerenderClientConstraint js t (Client (QueryT t q m)) -> Client (QueryT t q m) a) -> QueryT t q m (Dynamic t a) Source #

(Prerender js t m, Monad m, Reflex t, Semigroup w) => Prerender js t (EventWriterT t w m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (EventWriterT t w m) :: * -> * Source #

Methods

prerender :: EventWriterT t w m a -> (PrerenderClientConstraint js t (Client (EventWriterT t w m)) -> Client (EventWriterT t w m) a) -> EventWriterT t w m (Dynamic t a) Source #

(Prerender js t m, Monad m, Reflex t, MonadFix m, Monoid w) => Prerender js t (DynamicWriterT t w m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (DynamicWriterT t w m) :: * -> * Source #

(Prerender js t m, Monad m) => Prerender js t (ReaderT r m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (ReaderT r m) :: * -> * Source #

Methods

prerender :: ReaderT r m a -> (PrerenderClientConstraint js t (Client (ReaderT r m)) -> Client (ReaderT r m) a) -> ReaderT r m (Dynamic t a) Source #

(js ~ NoJavaScript, SupportsStaticDomBuilder t m) => Prerender js t (StaticDomBuilderT t m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (StaticDomBuilderT t m) :: * -> * Source #

(Prerender js t m, MonadFix m, Reflex t) => Prerender js t (RequesterT t request response m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (RequesterT t request response m) :: * -> * Source #

Methods

prerender :: RequesterT t request response m a -> (PrerenderClientConstraint js t (Client (RequesterT t request response m)) -> Client (RequesterT t request response m) a) -> RequesterT t request response m (Dynamic t a) Source #

(Adjustable t m, PrerenderBaseConstraints js t m, ReflexHost t) => Prerender js t (HydrationDomBuilderT HydrationDomSpace t m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (HydrationDomBuilderT HydrationDomSpace t m) :: * -> * Source #

(ReflexHost t, Adjustable t m, PrerenderBaseConstraints js t m) => Prerender js t (HydrationDomBuilderT GhcjsDomSpace t m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (HydrationDomBuilderT GhcjsDomSpace t m) :: * -> * Source #

prerender_ :: (Functor m, Reflex t, Prerender js t m) => m () -> (PrerenderClientConstraint js t (Client m) => Client m ()) -> m () Source #

Render the first widget on the server, and the second on the client. The hydration builder will run *both* widgets.