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
Violation:Hooks must be the same function on every render (Error, line 136): tooltip.useState('open') (AriaKit store hook). Note: the child.ref access on line 147 is guarded by eslint-disable react-hooks/refs but does not currently produce a recorded compiler error.
Part of #1066.
src/tooltip/tooltip.tsxHooks must be the same function on every render(Error, line 136):tooltip.useState('open')(AriaKit store hook). Note: thechild.refaccess on line 147 is guarded byeslint-disable react-hooks/refsbut does not currently produce a recorded compiler error.Steps
tooltip.useState('open')touseStoreState(tooltip, 'open')from@ariakit/react, per#conditional-hook-calls. Same migration as refactor: Fix React Compiler violations in Menu #1068 (menu) and refactor: Fix React Compiler violations in Tabs #1070 (tabs); can be batched into one PR.