secretary
secretary copied to clipboard
Can't define a route with query parameters.
I receive this error in the javascript console (picture attached).
(defroute "/details/:id" {:as params}
(render-details-page (:id params)))
This error happens even if I just take out the (:id params)
part and just render a random component.
if you want to use the id and query parameters of the page then do something like this
(defroute "/details/:id" [id query-params]
(render-details-page (id query-params)))