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

Doc update for Phoenix.LiveView.stream_insert/4 #3198

Merged
merged 3 commits into from May 15, 2024

Conversation

balexand
Copy link
Contributor

Update the docs to make it clear that in the case where the item already exists in the parent DOM container, it's position will not be changed regardless of the value of the :at option. In particular, I removed the phrase, "while also moving it to the top of the collection", which was inaccurate.

Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think this is in the right direction :)

I found a change in 69cea0c thanks to the changelog for 0.20.4, so @SteffenDE might remember how it is supposed to be! The changelong reads:

Bug fixes
...

  • Never move existing stream items if they already exist (use stream_delete and then stream_insert instead)

@SteffenDE SteffenDE merged commit 76cb858 into phoenixframework:main May 15, 2024
5 checks passed
@SteffenDE
Copy link
Collaborator

The change is good, thank you 🙌🏻

@balexand balexand deleted the stream_doc branch May 15, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants