-
Notifications
You must be signed in to change notification settings - Fork 893
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
In tests, resetting a stream after adding items doesn't remove items #2816
Comments
FWIW I opened this a while ago: #2677 I don't think this is the right way to solve it, but I couldn't grok the code path to map the phx stream. This was just the simplest fix I could think of. |
nathanalderson
added a commit
to nathanalderson/phoenix_live_view
that referenced
this issue
Oct 17, 2023
Unfortunately doesn't fix phoenixframework#2816.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Actual behavior
In a LiveViewTest, sending items to the stream (via, for example,
stream(socket, :some-stream, [item1, item2])
) and subsequently resetting the stream (viastream(socket, :some-stream, [], reset: true)
) does not remove the items from the DOM.I have reproduced this in the testbench. See this comparison.
Expected behavior
Resetting a stream should always remove the items from the DOM.
The text was updated successfully, but these errors were encountered: