Read the freshest parameter bag without triggering a republish.
parameters.getUpdatedAllParams() looks like a getter but is not one: it
reassigns sourceParameters and calls updateSourceParameters as a side
effect. Calling it from a React event handler or a polling loop therefore
re-enters your own update path, which at best causes a render storm and at
worst locks the tab before getUserMedia resolves.
MediaSFU components now publish a pure getCurrentParams() on the bag; this
helper uses it when present and otherwise returns the bag you already hold.
It never calls getUpdatedAllParams() and never throws.
Read the freshest parameter bag without triggering a republish.
parameters.getUpdatedAllParams()looks like a getter but is not one: it reassignssourceParametersand callsupdateSourceParametersas a side effect. Calling it from a React event handler or a polling loop therefore re-enters your own update path, which at best causes a render storm and at worst locks the tab beforegetUserMediaresolves.MediaSFU components now publish a pure
getCurrentParams()on the bag; this helper uses it when present and otherwise returns the bag you already hold. It never callsgetUpdatedAllParams()and never throws.