createMemo question
Is there any drawback to using createMemo for 'cheap' calls? Does the overhead, whatever it may be, make it not worth it for 'cheap' calls?
const inputError = createMemo(() => formCtx.errors[props.name]);
return (
<InputContext.Provider value={{}}>
<Field.Component>
<Field.Label
//unrelated props
/>
<Field.Input
//unrelated props
/>
<Show when={inputError()}>
<Field.Feedback msg={inputError()}/>
</Show>
</Field.Component>
)