Kanishk2209
Kanishk2209
SSolidJS
Created by Kanishk2209 on 3/25/2024 in #support
Getting this error - TypeError: Cannot read properties of null (reading '_isDirty')
Thanks for your response! I found what the issue was, unfortunately it was a very small mistake from my side which I double checked in the solid demo app, I found this thing to be different, so it was
return (<Show when={ottRowModel()}>
<For each={ottRowModel()}>{(items) => {<IListItemRenderer items={items}></IListItemRenderer>}}</For></Show>);
return (<Show when={ottRowModel()}>
<For each={ottRowModel()}>{(items) => {<IListItemRenderer items={items}></IListItemRenderer>}}</For></Show>);
If I do it like this using {} curly braces for iterating through items, it throws that error -- but if I do like this
return (<Show when={ottRowModel()}><For each={ottRowModel()}>{(items) => (<IListItemRenderer items={items}></IListItemRenderer>)}</For></Show>);
return (<Show when={ottRowModel()}><For each={ottRowModel()}>{(items) => (<IListItemRenderer items={items}></IListItemRenderer>)}</For></Show>);
use parentheses when iterating through the items, no more error and the images are rendered correctly
7 replies