export const Burger = factory<BurgerFactory>((_props, ref) => {
const props = useProps('Burger', defaultProps, _props);
const [local, others] = splitProps(props, [
...
'opened',
...
]);
If I put a createEffect here. I don't see anything at all.
createEffect(() => {
console.log('opened', local.opened()); <-- have tried many combinations here
});
return (
...
<Box mod={['reduce-motion', { opened: () => local.opened! }]} {...getStyles('burger')} />
{local.children}
...
);
});
export const Burger = factory<BurgerFactory>((_props, ref) => {
const props = useProps('Burger', defaultProps, _props);
const [local, others] = splitProps(props, [
...
'opened',
...
]);
If I put a createEffect here. I don't see anything at all.
createEffect(() => {
console.log('opened', local.opened()); <-- have tried many combinations here
});
return (
...
<Box mod={['reduce-motion', { opened: () => local.opened! }]} {...getStyles('burger')} />
{local.children}
...
);
});