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