Skip to content
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

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

Open
taefi opened this issue Dec 2, 2024 · 0 comments
Labels
enhancement New feature or request hilla Issues related to Hilla

Comments

@taefi
Copy link
Contributor

taefi commented Dec 2, 2024

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

@taefi taefi added enhancement New feature or request hilla Issues related to Hilla labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hilla Issues related to Hilla
Projects
None yet
Development

No branches or pull requests

1 participant