-
-
Notifications
You must be signed in to change notification settings - Fork 413
[LiveComponent] The best way to manage a list of items with CRUD #3222
Copy link
Copy link
Closed
Labels
Description
Hi,
I searched for a demo to configure a CRUD with a list using live component, but I couldn't find one.
The idea is to display a list with the ability to add or delete an item that would update the list.
What would be the best way to proceed:
-
Have a single component to manage the display of the list, adding and deleting an item. The list is easier to update this way.
-
Or separate the components, for example:
- CategoryListComponent
- CategoryDeleteComponent
- CategoryFormComponent
and use emit to update the list when adding or deleting an item. I encountered some problems when deleting; the list does not necessarily update correctly, even when following the documentation.
Thank you in advance for your help.
Reactions are currently unavailable