Safe Haskell | None |
---|---|
Language | Haskell98 |
Render the first widget on the server, and the second on the client.
Synopsis
- class Prerender js t m | m -> t js where
- prerender_ :: (Functor m, Reflex t, Prerender js t m) => m () -> (PrerenderClientConstraint js t (Client m) => Client m ()) -> m ()
- type PrerenderClientConstraint js t m = (DomBuilder t m, DomBuilderSpace m ~ GhcjsDomSpace, DomRenderHook t m, HasDocument m, TriggerEvent t m, Prerender js t m, PrerenderBaseConstraints js t m)
- type PrerenderBaseConstraints js t m = (HasJSContext (Performable m), HasJSContext m, MonadFix m, MonadHold t m, MonadJSM (Performable m), MonadJSM m, MonadRef (Performable m), MonadRef m, MonadReflexCreateTrigger t m, MonadSample t (Performable m), PerformEvent t m, PostBuild t m, PrimMonad m, Ref (Performable m) ~ IORef, Ref m ~ IORef, HasJS js m, HasJS js (Performable m))
Documentation
class Prerender js t m | m -> t js where Source #
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_ :: (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.
type PrerenderClientConstraint js t m = (DomBuilder t m, DomBuilderSpace m ~ GhcjsDomSpace, DomRenderHook t m, HasDocument m, TriggerEvent t m, Prerender js t m, PrerenderBaseConstraints js t m) Source #
type PrerenderBaseConstraints js t m = (HasJSContext (Performable m), HasJSContext m, MonadFix m, MonadHold t m, MonadJSM (Performable m), MonadJSM m, MonadRef (Performable m), MonadRef m, MonadReflexCreateTrigger t m, MonadSample t (Performable m), PerformEvent t m, PostBuild t m, PrimMonad m, Ref (Performable m) ~ IORef, Ref m ~ IORef, HasJS js m, HasJS js (Performable m)) Source #