Problem/Motivation
In some circumstances (still to be defined), we're getting the following error:
AssertionError: #lazy_builder callbacks must return a valid renderable array, got string from masquerade.callbacks:renderSwitchBackLink in assert() (line 403 of core/lib/Drupal/Core/Render/Renderer.php)
Context:
- Masquerade version 8.x-2.0-rc4
- Drupal 10.2.4
- "Switch back" link has been added to a custom-rendered user account block
Steps to reproduce
Client reports the problem, but currently unable to reproduce myself.