Debugging
There is a debug
flag available on the configuration for SearchDriver
and SearchProvider
.
<SearchProvider config={
debug: true
//...
}>
Setting this to true
will make the searchUI
object available globally on window. This will allow you to
programmatically execute actions in the browser console which can be helpful for debugging.
window.searchUI.addFilter("states", "California", "all");
This will also log actions and state updates as they occur to the console in the following form:
Search UI: Action {Action Name} {Action Parameters}
Search UI: State Update {State to update} {Full State after update}