Array.includes is not reactive.
const [ activeKeys, setActiveKeys ] = createSignal<number[]> ([])
const isActive = (i: number) => activeKeys ().includes (i)
I have this code. isActive () is not reative.
What's problem?2 Replies
seems fine, the issue could be somewhere else?
I'm using isActive inside <For> hmm..
Ok, it was my misstake. Thanks!!