We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in @compiled/babel-plugin. Example code:
@compiled/babel-plugin
import { styled } from '@compiled/react'; import React from 'react'; const UNMOUNTED = 'unmounted'; const EXITED = 'exited'; const ENTERING = 'entering'; const ENTERED = 'entered'; const EXITING = 'exiting'; export type TransitionState = | typeof UNMOUNTED | typeof EXITED | typeof ENTERING | typeof ENTERED | typeof EXITING; type ContainerProps = { transitionState: TransitionState; }; const containerStyles: { [id: string]: React.CSSProperties } = { exited: { flex: '0 0 0', width: '50px' }, entered: { flex: '0 0 50px', width: '50px' }, }; export const MyContainer = styled.div<ContainerProps>( ({ transitionState }) => transitionState && { ...containerStyles[transitionState] }, ); export const App = (): JSX.Element => ( <> <MyContainer transitionState={EXITED}>hello</MyContainer> </> );
Infinite loop occurs when statically evaluating the MemberExpression containerTransitionStyles[transitionState]. Appears to get stuck here:
containerTransitionStyles[transitionState]
compiled/packages/babel-plugin/src/utils/css-builders.ts
Line 807 in 25779e3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug in
@compiled/babel-plugin
. Example code:Infinite loop occurs when statically evaluating the MemberExpression
containerTransitionStyles[transitionState]
. Appears to get stuck here:compiled/packages/babel-plugin/src/utils/css-builders.ts
Line 807 in 25779e3
The text was updated successfully, but these errors were encountered: