Closed andrewtpoe closed 6 years ago
Modifiers should fall through to the component being extended.
When applied to the extended component, the library is throwing a modifierFunc is not a function error.
modifierFunc is not a function
const MODIFIER_CONFIG = { sample: () => 'color: blue;', } const Base = styled.div` ${applyStyleModifiers(MODIFIER_CONFIG)} `; const Extension = styled(Base)``; // when rendering, this will throw the error. <Extension modifiers={['sample']} />
PR to follow
EXPECTED BEHAVIOR
Modifiers should fall through to the component being extended.
ACTUAL BEHAVIOR
When applied to the extended component, the library is throwing a
modifierFunc is not a function
error.STEPS TO REPRODUCE
SUGGESTED SOLUTION
PR to follow