Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument destructuring is not working properly #22

Closed
piranha opened this issue Feb 20, 2015 · 0 comments
Closed

Argument destructuring is not working properly #22

piranha opened this issue Feb 20, 2015 · 0 comments

Comments

@piranha
Copy link
Collaborator

piranha commented Feb 20, 2015

Code like this:

(rum/defc Label [{:keys [id text] :as item}]
  (js/console.log (pr-str item) (pr-str text))
  [:div {:key id} (str text " ") [:span.badge id]])

outputs this to console:

 {:keys [2 "Two"], :as {:id 2, :text "Two"}} nil
@tonsky tonsky closed this as completed in ee1bdea Feb 20, 2015
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

No branches or pull requests

1 participant