Liking cljdoc? Tell your friends :D

reacl-c-basics.media-query

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.
raw docstring

changescljs

(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.
sourceraw docstring

query!cljs

(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.
sourceraw docstring

resultcljs

(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.
sourceraw docstring

with-resultcljs

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close