gethop-dev/hydrogen.duct-template

Tooltip demos definitions get created only with session profiles

Closed this issue · 0 comments

The DELETEME-demo-tooltip and DELETEME-demo-loading are used in every profile but are defined only with session profiles. We need to make sure that their definitions are added for plain core profile too.

Reproducing steps:

  1. lein new duct foo +cljs +site +hydrogen/core
  2. lein repl
  3. (dev)
  4. (go)

You will see the compiler complain:

----  Compiler Warning on   src/foo/client/home.cljs   line:19  column:5  ----

  Use of undeclared Var foo.client.home/DELETEME-demo-tooltip

  15  (defn main []
  16    [:div
  17     [:img {:src "images/hydrogen-logo-white.svg" :alt "Hydrogen logo"}]
  18     [:h1.demo-greeting "Welcome to Hydrogen!"]
  19     [DELETEME-demo-tooltip]
          ^--- Use of undeclared Var foo.client.home/DELETEME-demo-tooltip
  20     [DELETEME-demo-loading]])