-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Table> Component Not Reactive in Flowbite-Svelte #1493
Comments
Im having the same issue, changes on items are not triggering a rerender. |
my current workaround of this problem is by using svelte each block instead of items arrays |
The problem is you loose the Sorting functionality by using each blocks. |
i mean you can create costum sorting
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report:
<Table>
Component Not Reactive in Flowbite-SvelteDescription
The
<Table>
component in Flowbite-Svelte does not update reactively when itsitems
prop (bound to a Svelte writable store) changes. Even though the data in the store updates correctly (as confirmed by logging), the table's UI does not reflect these changes.Expected Behavior
The
<Table>
component should re-render automatically when theitems
array (bound to a Svelte writable store) is updated, such as when an item is deleted from the array.Current Behavior
console.log
).<Table>
UI does not reflect the updated data unless additional workarounds are used (svelte each block).Steps to Reproduce
<Table>
component:tableData
has changed, but the<Table>
UI remains unchanged.Additional Notes
This issue may be related to how the
<Table>
component processes changes to itsitems
prop. It might not be tracking changes reactively or could require a specific update mechanism. Ensuring compatibility with Svelte's reactive stores would improve the developer experience significantly.Reproduction
Flowbite version and System Info
The text was updated successfully, but these errors were encountered: