Skip to content

[Full-stack Signals][DX] ListSignal can have more API to insert at other positions #2946

@taefi

Description

@taefi

Describe your motivation

ListSignal can also have support for insertion:

  • at the beginning
  • before or after a certain item
  • exactly between two specific items

Describe the solution you'd like

I would expect inserting

  • at the beginning -> to be done in an atomic way, and always succeeds.
  • before or after a certain item -> to be done in an atomic way, and always succeeds, unless the reference item is removed.
  • exactly between two specific items -> to be done in an atomic way, and succeeds only if there's no other item between the reference items.

Describe alternatives you've considered

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthillaIssues related to Hilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions