Skip to content

Commit

Permalink
Update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
diegohaz committed Sep 4, 2023
1 parent c701d40 commit 0af473b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .changeset/2785-menu-provider-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"@ariakit/react": patch
---

[`#2785`](https://github.com/ariakit/ariakit/pull/2785) Added `parent` and `menubar` props to the menu store. These props will be automatically set when rendering nested menus or menus inside a menubar.
[`#2785`](https://github.com/ariakit/ariakit/pull/2785) Added `parent` and `menubar` properties to the menu store. These properties are automatically set when rendering nested menus or menus within a menubar.

However, it now supports rendering nested menus that aren't nested in the React tree, in which case you would have to provider the parent menu store manually to the child menu store.
Now, it also supports rendering nested menus that aren't nested in the React tree. In this case, you would have to supply the parent menu store manually to the child menu store.

Those props will also be included in the returned menu store object so you can check them to see if the menu is nested or not. For example:
These properties are also included in the returned menu store object, allowing you to verify whether the menu is nested. For instance:

```jsx
const menu = useMenuStore(props);
Expand Down

0 comments on commit 0af473b

Please sign in to comment.