Skip to content
Commit 60417deb authored by Steve Elliott's avatar Steve Elliott
Browse files

Add optional emitFirstEvent param to setChanges()

There are situations where you really don't want to treat the first
event as a change; for these cases, you can use

    setChanges(emitFirstEvent = false)

Unfortunately, due to the usage of distinctUntilChanged() in the
definition of setChanges(), there is no (obvious) way to recover this
behavior on the client-side by dropping / filtering events, so we need
to add this option to the method signature.

Bug: 241121499
Test: atest SetChangesFlowTest
Change-Id: I65ce50c12fb6299fa490887555e40db69f0eebdf
parent 7b21fb6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment