Repository navigation
v2.5.0
Minor Changes
-
#178
81a591bThanks @tenphi! - Revert the dispatch behaviour introduced in 2.4.0.tasty(Component, options)
again unconditionally uses the prop-forwarding wrap path; the brand-based
discriminator (brandTastyComponent/isTastyComponent) and the
tasty('div', options)shorthand are removed.To apply styles to a third-party component (Next.js
Link,react-router
Link, Radix primitives, MUI, …) or to a string DOM tag viaclassName, use
the options-only form withas:const Link = tasty({ as: NextLink, styles: { … } }); const Span = tasty({ as: 'span', styles: { … } });
This restores 2.3.x semantics for
tasty(Component, …)and removes the silent
prop-leakage that 2.4.0 introduced when wrapping plainforwardRef/memo
components that were not branded.