-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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]: Menu control not appearing in NextJS #31429
Comments
Your example lacks proper setup (does not have needed providers), please check https://react.fluentui.dev/?path=/docs/concepts-developer-server-side-rendering-next-js-appdir-setup--page. |
I took it too bare bones for reproduction - but I've added the SSR and RendererProvider and now have it matching essentially verbatim to the example and setup reference and still do not get the context to show. Updated github repo. |
I was able to get around the issue by setting reactStrictMode fo false in the next.config.mjs file:
Without this both the menu context and drawers set to overlay will not appear. |
@jkizziar thanks, I was able to repro it. Next uses React 18.3.0-canary-14898b6a9-20240318 which seems to contain changes from React 19 beta related to effects. 18.3https://stackblitz.com/edit/vitejs-vite-2qfxth
18.3.0-canary-14898b6a9-20240318https://stackblitz.com/edit/vitejs-vite-qnt1wx
I suggest to disable Strict Mode for mode, we will look for a proper fix. The problem occurs in |
Library
React Components / v9 (@fluentui/react-components)
System Info
Are you reporting Accessibility issue?
no
Reproduction
https://github.com/jkizziar/nextjs-fluentui-menu-issue
Bug Description
Actual Behavior
Menu context does not appear utilizing a base nextjs install with fluentui react components. Using following versions:
"@fluentui/react-components": "^9.52.0",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18"
Expected Behavior
Expecting to see context menu. Tested same code using latest Vite and it is working.
Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations
The text was updated successfully, but these errors were encountered: