SolidJSS
SolidJSโ€ข3y agoโ€ข
3 replies
Jasmin

Nested object signal

Hey! I have trouble getting changes in a nested object to trigger a rerender. My object looks like this:

type Alerts = {
  [key: string]: {
    name: string
    show: boolean
  }
}

When changing show from true to false, the dom doesn't rerender :/
I created a simplified example in the playground:
https://playground.solidjs.com/anonymous/3f20d81d-25cf-45a7-9931-316bf3be7495
After changing the signal, it doesn't update the dom to reflect the change. What am I missing?
Was this page helpful?