username
of this input is stored in React component state.username
prop.username
changes, the new username is passed to the stream. Any blank strings are filtered from the stream, and then the usernames are debounced for one second.USER_FOUND
is output; if no user is found, an effect with type USERNAME_AVAILABLE
is output.handler
toggles the available
state appropriately depending on the effect's type.