Liking cljdoc? Tell your friends :D

ripley.live.push-state

Helpers for working with history push state.

Helpers for working with history push state.
raw docstring

push-stateclj

(push-state path-and-params-source)
(push-state path-and-params-source on-pop-state)

Outputs a script that sets path and query parameters based on source value (a map). When browser pops state, the callback is invoked to handle new values. The callback will be invoked with the popped state.

The location path is included in the map with key :ripley.live.push-state/path all other keys are considered to be query parameters.

If on-pop-state is omitted, the default will write the value to the source.

Outputs a script that sets path and query parameters based on source value (a map).
When browser pops state, the callback is invoked to handle new values.
The callback will be invoked with the popped state.

The location path is included in the map with key :ripley.live.push-state/path
all other keys are considered to be query parameters.

If on-pop-state is omitted, the default will write the value to the
source.
sourceraw docstring

push-state-queryclj

source

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

× close