You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Menu control not appearing in NextJS / React 19 #31429
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
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.
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.
Activity
layershifter commentedon May 21, 2024
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.
jkizziar commentedon May 21, 2024
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.
jkizziar commentedon May 21, 2024
I was able to get around the issue by setting reactStrictMode fo false in the next.config.mjs file:
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, }; export default nextConfig;Without this both the menu context and drawers set to overlay will not appear.
layershifter commentedon May 22, 2024
Jerry Kizziar (@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.3
https://stackblitz.com/edit/vitejs-vite-2qfxth
18.3.0-canary-14898b6a9-20240318
https://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
Portalbecause ofuseDisposable()usage.tomivm commentedon Sep 9, 2024
Waiting for a better solution :)

[-][Bug]: Menu control not appearing in NextJS[/-][+][Bug]: Menu control not appearing in NextJS / React 19[/+]layershifter commentedon Jun 27, 2025
The revert will be merged #34737, so the issue is back on the radar