Skip to content

[LiveComponent] The best way to manage a list of items with CRUD #3222

@gundesli

Description

@gundesli

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:

  1. Have a single component to manage the display of the list, adding and deleting an item. The list is easier to update this way.

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions