svelte-headless-table icon indicating copy to clipboard operation
svelte-headless-table copied to clipboard

Async / fetch support?

Open hbcondo opened this issue 1 year ago • 1 comments

Does this library by chance support retrieving data via an async fetch on the client? For example, how would you set these asynchronously?

  const {
    headerRows,
    rows,
    tableAttrs,
    tableBodyAttrs,
  } = table.createViewModel(columns);

hbcondo avatar Aug 20 '24 15:08 hbcondo

Hey, unfortunately I didn't account for columns being reactive, so it's not supported.

If you need columns to be dynamically provided, I'd suggest implementing a view model yourself without this library! I'd be happy to help in that regard.

bryanmylee avatar Aug 27 '24 09:08 bryanmylee