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
Violations:Hooks must be the same function on every render ×2 (Error, lines 134 and 165): both are menuStore.useState('open') (AriaKit store hook reached through a mutable object).
Part of #1066.
src/menu/menu.tsxHooks must be the same function on every render×2 (Error, lines 134 and 165): both aremenuStore.useState('open')(AriaKit store hook reached through a mutable object).Steps
menuStore.useState('open')touseStoreState(menuStore, 'open')from@ariakit/react, per#conditional-hook-calls. The same migration covers refactor: Fix React Compiler violation in Tooltip #1069 (tooltip) and refactor: Fix React Compiler violations in Tabs #1070 (tabs); not a dependency (the compiler runs per-module), but the three can land in one PR.