- Issue created by @ckrina
- Status changed to Closed: duplicate
7 months ago 10:55am 17 May 2024 - πͺπΈSpain plopesc Valladolid
We can close this given that π Regression: Shortcuts menu flickers when the page is loaded Fixed showed the way to avoid flickering with no need to make an extra effort at render array level.
Same approach could be followed in the future if necessary.
Talked to @mherchel in the weekly Drupal Admin UI call and he also agreed.
- Status changed to Active
7 months ago 4:10pm 17 May 2024 - π¬π§United Kingdom catch
*/ public function build(): array { return [ 'user' => [ '#lazy_builder' => [ 'navigation.user_lazy_builder:renderNavigationLinks', [], ], '#create_placeholder' => TRUE, '#cache' => [ 'keys' => ['user_set_navigation_links'], 'contexts' => ['user'], ], '#lazy_builder_preview' => [ '#markup' => '<a href="#" class="toolbar-tray-lazy-placeholder- link"> </a>', ], ], ]; }
I think there's still an issue here - it now looks like the preview isn't user-specific, but the caching of the preview still is. This could be verified by using the navigation with a couple of different users then checking the cache IDs in the cache_render table.
It could end up being a duplicate of π Investigate using the core "User account menu" in favor of custom Navigation Block for same Active maybe though.
- πͺπΈSpain plopesc Valladolid
Thank you for the heads up!
Planned to deal with this as part of the mentioned issue π Investigate using the core "User account menu" in favor of custom Navigation Block for same Active once the related issues π Provide a NavigationLinkBlock Plugin and use Help as an usage example Needs review & π Rename UserNavigationBlock to NavigationUserBlock for class name consistency RTBC are in and the ground is ready to mess with it.
We can leave this open as a reference and reminder in the meantime, though.
- Status changed to Postponed
3 months ago 8:58pm 13 September 2024 - π¨π¦Canada m4olivei Grimsby, ON
Postponing on π Provide a NavigationLinkBlock Plugin and use Help as an usage example Needs review (which is really close!!), per last comment by @plopsec.