Utilities to do CSS media queries and get notified when their results change, e.g. the user resized the window.
Utilities to do CSS media queries and get notified when their results change, e.g. the user resized the window.
(changes query)
Returns a subscription item, emitting changes of the result of the given media query over time.
Returns a subscription item, emitting changes of the result of the given media query over time.
(query! query)
Returns an effect, that performs the given media query and returns the result - a boolean value.
Returns an effect, that performs the given media query and returns the result - a boolean value.
(result query)
Returns an item the keeps state its state up to date with the result of the given media query.
Returns an item the keeps state its state up to date with the result of the given media query.
(with-result query f & args)
Returns an item the calls f
with the result of the given media query, and calls it again when it changes over time.
Returns an item the calls `f` with the result of the given media query, and calls it again when it changes over time.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close