Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: fluentui v9 incompatible with react strict mode #23748

Closed
2 tasks done
j3rrym0use opened this issue Jun 28, 2022 · 2 comments
Closed
2 tasks done

[Bug]: fluentui v9 incompatible with react strict mode #23748

j3rrym0use opened this issue Jun 28, 2022 · 2 comments

Comments

@j3rrym0use
Copy link

j3rrym0use commented Jun 28, 2022

Library

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

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 3.70 GB / 15.53 GB
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.37)
    Internet Explorer: 11.0.22000.120

React Version: 18.2.0

Are you reporting Accessibility issue?

No response

Reproduction

https://codesandbox.io/s/elegant-hertz-4g4di1

Bug Description

Actual Behavior

when enable react "strictmode", fluentui doesnt render any styles.
import { FluentProvider } from "@fluentui/react-components";
import { StrictMode } from "react";
import * as ReactDOMClient from "react-dom/client";

import App from "./App";

const rootElement = document.getElementById("root");
const root = ReactDOMClient.createRoot(rootElement);

root.render(
<StrictMode>
<FluentProvider>
<App />
</FluentProvider>
</StrictMode>
);

by removing , everything go normal.

Expected Behavior

when enable react "strictmode", fluentui renders properly.

Logs

No response

Requested priority

Normal

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.
@layershifter
Copy link
Member

Duplicate of #23625.

P.S. @fluentui/react-components does not support React 18, yet, #22581.

@j3rrym0use
Copy link
Author

copy understood.

@microsoft microsoft locked as resolved and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants