adamhaile / S

S.js - Simple, Clean, Fast Reactive Programming in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Push to array data signal

mrjjwright opened this issue · comments

Beginner question, awesome library, thanks! If I have a DataSignal<T[]> and I want to cause it's dependent computations to trigger/change, I assume I have to do the following:

const arr = dataSignal()
arr.push(newValue)
dataSignal(arr)

Is there another or better way to do it?