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

Support vars in :init/inject #1

Closed
ferdinand-beyer opened this issue Jul 15, 2022 · 0 comments
Closed

Support vars in :init/inject #1

ferdinand-beyer opened this issue Jul 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ferdinand-beyer
Copy link
Owner

  • Resolve a var to a component name
  • More direct: Users see directly what will be injected
  • Linters understand that a var is actually used
  • Survives refactoring
(defn ^:init/name foo []
  ::foo)

(defn use-foo
  {:init/inject [#'foo]}
  [foo]
  (println "Got: " foo))
@ferdinand-beyer ferdinand-beyer added the enhancement New feature or request label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant