Skip to content

fix: v5 FluentTabs get stuck switching infinitely#5146

Description

馃悰 Bug Report

In the new v5 version of the library FluentTabs very often get stuck in infinite switching loops

馃捇 Repro or Code Sample

Reproducible on the demo site by clicking through tabs quickly. Not very consistent though, and seems to repro better on a slower laptop for me.

tab-jumps.webm

The video shows it when clicking add, but I've also been able to repro the same thing on another device by just switching tabs around. It would also just sometimes freeze the page completely and force me to kill the tab.

One clue that could help in debugging from my side is that rendering heavier tab content and switching around seems to repro the issue more consistently.

Also, I find it harder to repro on root tabs, seems to be easier to repro on nested tabs (FluentTabs displayed as content of another FluentTab).

馃拋 Possible Solution

Haven't found a good workaround for it, unfortunately. All the components being upgraded from v4 to v5 bind ActiveTabId. It seems like unbinding it improved things a little (makes it harder to repro), but does not eliminate it entirely.

I think it's an issue with the rendering loop of state updates between tabs parent -> tabs -> native library logic and repeated event handling/ActiveTabId forwarding logic.

I haven't tested the js library without the Blazor wrapper, so it might be worth trying to repro it there too and it might not strictly be this library's issue.

馃實 Your Environment

Seems to be browser-agnostic (tried on Firefox and Chromium-based browsers)

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-investigationNeeds additional investigationv5For the next major version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions