Hide view results with hook
Solved my problem with the following:

function MYMODULE_views_pre_render(\Drupal\views\ViewExecutable $view) {
  if($view-&gt;id() == 'tasks') {
    $i = 0;
    foreach($view-&gt;result as $value) {
      if($i == 2)
        unset($view-&gt;result[$i]);
      $i++;
    }
  }
 }


The code above does not show the 3rd result from the view results. Add logic as you need.