Liking cljdoc? Tell your friends :D

Changelog

0.1.6

Added

  • Allow metadata to be set on vars created with defnc as a map after the name and before the args list, just like defn
  • clj-kondo hooks for defnc, $ et al.

0.1.5

Breaking

  • Removed deps.cljs which declares dependencies on React. This was causing unnecessary build warnings/errors. Consumers should install react and react-dom themselves. This will not break existing projects.

0.1.4

Fixed

  • Correctly compare props when using helix.core/memo without a custom comparator combined with :define-factory
  • CLJS 1.10.891 compat: don't assume goog.object is globally available

0.1.3

Fixed

  • Fix invalid hooks check when hooks appear inside literals, i.e. (when x [(use-foo)])
  • Fix recursive calls to components wrapped in HOC
  • Detect hooks inside of JS literals

0.1.2

Fixed

  • Fix invalid hooks check false warnings when a use- symbol appears in a quoted form (@SevereOverfl0w)
  • Allow a single var/binding to be passed to use-callback

Added

  • Invalid hooks check now happens in defhook forms
  • fnc for constructing anonymous components

0.1.1

Fixed

  • Fix performance issue with use-subscription due to calling pr-str on subscription state every render

0.1.0

Breaking

  • Enable :check-invalid-hooks-usage by default

Added

  • helix.dom/$d helper for rendering components with DOM props coercion; e.g. ($d material-ui/button {:class ["foo" "bar"]})

0.0.15

Fixed

  • (@jimmyhmiller) Fix use-subscription infinite render

0.0.14

Fixed

  • (@alidlorenzo) Correctly handle objects when passing a vector into React Native style prop
  • (@aiba) Don't log result of performFastRefresh
  • (@stanislas) Don't camel case CSS custom properties
  • (@wilkerlucio) Declare DOM macros to allow Cursive's static analysis to detect them
  • (@wilkerlucio) Correctly declare deps in deps.edn
  • (@jimmyhmiller) Change from js/goog.DEBUG to goog/DEBUG to help with infer-externs
  • (@jimmyhmiller) Add style/indent :defn to hooks that have deps
  • use-debug-value correctly refers React's useDebugValue

Added

  • use-subscription hook that respects Clojure equality

Breaking

  • mark component-fn private when using factory functions

0.0.13

Fixed

  • Passing in :ref and :key props with factory functions
  • Docstrings for defnc and $

0.0.12

Added

  • for "native" elements the :style prop now accepts an arbitrary JS object as well as a map or vector

0.0.11

Added

  • Added deps.cljs which specifies react, react-refresh
  • :class prop for native components now accepts a seq(able) collection, e.g. :class ["foo" "bar"] is equivalent to :class (str foo " " bar).
  • Spread props can now take a JS object. This can help a lot in certain interop situations where a 3rd party library passes a JS object that are meant to be given as props to an element of your choice.

Fixed

  • Spread props using keyword :& works with non-native components
  • Fix a bug where passing in non-existent value to a native element would pass in nil, when the element expected js/undefined
  • Helix now works with the vanilla CLJS compiler, including figwheel projects
  • :define-factory works with :fast-refresh feature flag

Breaking

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close