ALPHA. This namespace's API is subject to change.
SimulatedURLHistory — a cross-platform URLHistoryProvider backed by an atom. Useful for headless testing of statechart-driven routing without a browser.
ALPHA. This namespace's API is subject to change. SimulatedURLHistory — a cross-platform URLHistoryProvider backed by an atom. Useful for headless testing of statechart-driven routing without a browser.
(history-cursor provider)Returns the current cursor position in provider's history.
Returns the current cursor position in `provider`'s history.
(history-entries provider)Returns the full entries (with indices) from provider's history.
Returns the full entries (with indices) from `provider`'s history.
(history-stack provider)Returns a vector of URL strings from provider's history.
Returns a vector of URL strings from `provider`'s history.
(simulated-url-history)(simulated-url-history initial-url)Creates a SimulatedURLHistory for headless testing.
Optionally accepts an initial-url (defaults to "/").
Creates a SimulatedURLHistory for headless testing. Optionally accepts an `initial-url` (defaults to "/").
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |