TanStackT
TanStack8mo ago
3 replies
sacred-rose

Is anyone using the alpha version with svelte?

Is anyone here using the alpha version of tabel with svelte 5? I switched to alpha because I am using svelte 5 but all the discussions on github are old, is it stable enough to use? has there been any updates lately?

The latest issue I am running into is that I am rendering my headers like this
{#each table.getHeaderGroups() as headerGroup}
  <tr class="tr">
    {#each headerGroup.headers as cell (cell.id)}
      {#if !cell.isPlaceholder}
        <th class="th {cell.id}">
          <FlexRender 
            context={cell.getContext()} 
            content={cell.column.columnDef.cell} 
          />
        </th>
      {/if}
    {/each}
  </tr>
{/each}


Which is obviously wrong but I can't find the docs on how to do it properly, I know it's wrong because it's calling the logic in the cell function and not the header
Was this page helpful?