How to make a display mode of the current user on the home page? I have a site built with Drupal 8 and the Twig Tweak module. I want to make the current user's frontpage_tasks display mode on my home page. How to do this ?
I can make a user's frontpage_tasks display mode by manually entering their ID :
page--front.html.twig :
{{ drupal_entity('user', 51, 'frontpage_tasks') }}
{{ drupal_entity('commerce_store', ???, 'frontpage_tasks') }}
{{ drupal_entity('group', ???, 'frontpage_tasks') }}

For stores, I want to display all stores that the current user owns.
For groups, I want to display all groups whose current user is the creator.
What I want to do is render the current user account, stores and groups with frontpage_tasks view mode.
In a Twig template you can get the current user id with user.id.
With the help of Twig Tweak you can use it to render the user entity:
{{ drupal_entity('user', user.id, 'full') }}

As discussed in the comments this only works if your template has already a cache context for the current user.