the _shouldShowSearch is using the old state object so I'm assuming you're referencing the _searchChanged method. It doesn't really matter if the search has changed at this point as right here it's simply setting up the charmbrowser to display search results. The _searchChanged call is done a few lines below when determining weather to re-render it or not.