Cannot use the `cn` utility function without passing any parameters.
bonizario opened this issue · 1 comments
bonizario commented
Describe the bug
The returned function of cn()
expects an optional configuration object as a parameter.
Calling it without passing anything raises an error.
To Reproduce
Steps to reproduce the behavior:
- Call the
cn
function without passing parameters e.g.:cn('text-white')()
. - Error raised.
Expected behavior
It should be possible to call the cn
function without passing a configuration object.
Desktop (please complete the following information):
- OS: Linux Mint 21.2 Cinnamon
- Browser: Chrome
- Version: Version 121.0.6167.160 (Official Build) (64-bit)
mskelton commented
Closing per discussion in the PR. Consider cnBase
and cn
as deprecated given their use is intended to be internal only.