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
REEEEE
REEEEE16mo ago
seems fine, the issue could be somewhere else?
musiclover
musicloverOP16mo ago
I'm using isActive inside <For> hmm.. Ok, it was my misstake. Thanks!!
Want results from more Discord servers?
Add your server