-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I'd think this should be allowed but we get a reactivity error inside createMemo and createEffect:
const item = createMemo(() => {
const { item } = props; // <-- solid/reactivity error
return item;
});I guess this is a trivial case as it means maybe supporting more complex cases like
const getItem = () => {
const { item } = props; // <-- solid/reactivity error
return item;
}
const item = createMemo(getItem);
// or
<Child item={getItem()} />Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested