Skip to content

fix: Dispatcher Exception in Debouncer 4.8.x+ #2466

@Mike-E-angelo

Description

@Mike-E-angelo

🐛 Bug Report

Setting the Immediate property to true on the FluentTextField in any version after 4.7 results in a dispatcher exception as it appears the invoked delegate is not being invoked on the same dispatcher of the component.

💻 Repro or Code Sample

I am encountering this on the FluentTextField when it sets the Immediate property to true when the version of Microsoft.FluentUI.AspNetCore.Components is anything 4.8.x or above. This problem does not happen on 4.7.2.

🤔 Expected Behavior

No errors, please. 😊 The debouncer should execute the delegate on the same thread as the component dispatcher.

😯 Current Behavior

In the case of FluentTextField with Immediate=true, I get the error here in 4.8.x+:

image

💁 Possible Solution

I am currently reverting back to 4.7.x to avoid this issue.

🔦 Context

Everything else works well. 😊

🌍 Your Environment

  • OS & Device: Windows 10 on PC
  • Browser Chrome
  • .NET and Fluent UI Blazor library Version 8.0 / 4.8+

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro code or repositoryThe provided description or code is insufficient to repro the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions