Module
Solid.Context
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
Context: values provided to a subtree. Every context has a default; for one
that must be provided, use Context (Maybe a) with default Nothing.
#createContext Source
createContext :: forall a. String -> a -> Context aThe name identifies the context: every createContext with the same name
is the same context (the first default wins), so define it once at the
top level under a qualified name, e.g. createContext "App.theme" Light.
It also shows in Solid's dev diagnostics.
#useContext Source
useContext :: forall a. Context a -> Setup aThe nearest provided value, or the context's default.
- Modules
- Solid.
Action - Solid.
Async - Solid.
Component - Solid.
Component. JS - Solid.
Context - Solid.
Control - Solid.
DOM - Solid.
DOM. Aria - Solid.
DOM. AttrValue - Solid.
DOM. HTML - Solid.
DOM. SVG - Solid.
Errors - Solid.
Internal. Action - Solid.
Internal. Equality - Solid.
Internal. Identity - Solid.
Internal. Names - Solid.
Internal. Optimistic - Solid.
Internal. Props - Solid.
Internal. Reply - Solid.
Internal. Serializable - Solid.
Internal. ServerFunction - Solid.
Internal. Setup - Solid.
Internal. Store - Solid.
Internal. Tracked - Solid.
Internal. View - Solid.
JSX - Solid.
Lifecycle - Solid.
Meta - Solid.
Owner - Solid.
Reactivity - Solid.
Root - Solid.
Router - Solid.
Router. Action - Solid.
Router. Path - Solid.
Router. Query - Solid.
Router. Search - Solid.
Setup - Solid.
Signal - Solid.
Start. Middleware - Solid.
Start. RequestEvent - Solid.
Start. Response - Solid.
Start. ServerFunction - Solid.
Start. UseServer - Solid.
Store - Solid.
Testing - Solid.
Utility - Solid.
Web - Solid.
Web. SSR