T
TanStack3y ago
other-emerald

flexRender update component props

hello I have a question in svelte. I would like to update the props of different cell component based on some action. currently I use the following:
header: ()=>flexRender(Checkbox, {
indeterminate,
change: (e: boolean) => {
indeterminate = e;
if (e) {
console.log('toggle all');
} else {
console.log('unselect all');
}
},
}),
header: ()=>flexRender(Checkbox, {
indeterminate,
change: (e: boolean) => {
indeterminate = e;
if (e) {
console.log('toggle all');
} else {
console.log('unselect all');
}
},
}),
However when indeterminate change in the callback the property of the componentt is not updated. Is it normal? How can I update the property of component render with flexRender?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?