Open lolcabanon opened 4 months ago
Hey @bryanmylee, this is the repo for the plugin I submitted a PR for earlier (couple weeks ago) on svelte-headless-table
.
I'm currently stuck on this issue, either I don't understand derived
stores, or there is something weird happening... I know you wrote you don't have a lot of time, but if by any chance you have any insight on this, I'd be very grateful!
I looked at your code, mostly the addResizedColumns()
plugin that has a similar logic (apply and update inline style
in reaction to events), and nothing seems to be too different... It's bugging me so much!
Problem
When a column
alignment
change, the correspondingth
update, but alltd
stays the same.Repro
pnpm dev
) and navigate tohttp://localhost:5173/simpletable
th
alignment changes, buttd
s are stuck in initial stateTroubleshoot
props
andattrs
) when thecolumnsAlignments
store is updated bytoggle
props
andattrs
are correctly computed forth
s andtd
s (console.log()
in the.update()
callback show correct values){#key}
blocks on many values, but nothing seems to trigger a re-render for the table body