Skip to content

docs(menus): describe how sub menus copy and change their items - #4052

Merged
afonsojramos merged 1 commit into
v3-betafrom
docs/submenu-items
Nov 5, 2026
Merged

afonsojramos merged 1 commit into
v3-betafrom
docs/submenu-items

Conversation

@afonsojramos

Copy link
Copy Markdown
Member

The ContextMenuV2.SubMenuItems doc and the ItemSubMenu.addItem and removeItem docs in globals.d.ts described an older implementation, where only a Set could change after construction. ItemSubMenu now copies the array or Set it is given, addItem appends and ignores an entry that is already present, and removeItem ignores an absent one. The docs now say that.

Testing

  • The existing "renders items passed as a Set or an array" test now also checks that changing the passed collection after construction does not change the sub menu.
  • node --test src/jsHelper/spicetifyWrapper/menus.test.mts and pnpm typecheck pass.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@afonsojramos
afonsojramos merged commit 15a4be3 into v3-beta Nov 5, 2026
7 checks passed
@afonsojramos
afonsojramos deleted the docs/submenu-items branch November 5, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant