private fun bookmarkSearchStateReducer( state: BookmarkSearchFragmentState, action: BookmarkSearchFragmentAction, ): BookmarkSearchFragmentState { return when (action) { is BookmarkSearchFragmentAction.UpdateQuery -> state.copy(query = action.query) } }
The [BookmarkSearchFragmentState] Reducer.