Skip to content

[Bug]: useControllableState is not able to sync internal state with incoming state #25748

Description

@YuanboXue-Amber

Library

React Components / v9 (@fluentui/react-components)

System Info

@fluentui/react-utilities 9.2.2
Edge/chrome browser

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/s/determined-kilby-fc1re0?file=/example.tsx

Bug Description

useControllableState maintains its internalState. When user changes the state input, useControllableState is not updating its internalState to be in sync with user state. Please see the codesandbox for more details.

This is a screenshot from codesandbox:
image

Logs

No response

Requested priority

Low

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions