<Show when={}> typescript error question.
I'm encountering a type error while working with the following code:
const [loggedIn, setLoggedIn] = createSignal(false);
In the return section of my component, I'm using the following code:
<Show when={loggedIn()}>loading</Show>
However, within the when attribute, I'm facing the following type error: "type boolean is not assignable to type false | undefined | null | T." Can someone explain why this is happening? Your assistance is greatly appreciated.
const [loggedIn, setLoggedIn] = createSignal(false);
In the return section of my component, I'm using the following code:
<Show when={loggedIn()}>loading</Show>
However, within the when attribute, I'm facing the following type error: "type boolean is not assignable to type false | undefined | null | T." Can someone explain why this is happening? Your assistance is greatly appreciated.

