Skip to content

Added an additional parameter to the dispatch! function to provide the matched route with optional context.#61

Open
dtulig wants to merge 1 commit intoclj-commons:masterfrom
dtulig:dispatch-with-context
Open

Added an additional parameter to the dispatch! function to provide the matched route with optional context.#61
dtulig wants to merge 1 commit intoclj-commons:masterfrom
dtulig:dispatch-with-context

Conversation

@dtulig
Copy link
Contributor

@dtulig dtulig commented Jan 24, 2015

This is useful if you don't want to use a global atom and instead want to pass that atom or state at the time you are dispatching. It is also nice to be able to generally pass additional information that might not be part of the URI that is being dispatched.

The :request-context attribute is merged with the same map as :query-params and can be destructed the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant