Atom with array does not update react components
any obvious reason my react component is not re-rendering when I update the atom? is this because the atom is holding an array?
Solution:Jump to solution
```ts
private _alerts: Charm.Atom<AlertContext[]>
updateMethod(alert) {
const t = this._alerts((old) => {...
10 Replies
charm is immutable
?

ai slop letsgooo
that means you cant change tables
you need to clone them
and then change them
oh yeah i see
t
is probably a reference to the original table
okyeah use @rbxts/sift
has the same methods but with immutable data
can i not just
t = table.clone()
Solution
oo ok
thanks :)
np :))