Skip to content

added quietKeyWarning to CreateOptionsConfig options to silence 'key' option is specified warning - #80

Open
StephenSmithwick wants to merge 2 commits into
thisbeyond:mainfrom
StephenSmithwick:main
Open

added quietKeyWarning to CreateOptionsConfig options to silence 'key' option is specified warning#80
StephenSmithwick wants to merge 2 commits into
thisbeyond:mainfrom
StephenSmithwick:main

Conversation

@StephenSmithwick

@StephenSmithwick StephenSmithwick commented Sep 2, 2026

Copy link
Copy Markdown

I've been using the key option increateOptions with the disable function. This works great but I receive the following warning whenever I render the component:

When 'key' option is specified, custom 'format', 'disable' and 'extractText' functions will receive the keyed value rather than the full object.

The warning is useful when first moving to the key option but becomes noise even after a developer updates their code. quietKeyWarning allows the developer to explicitly acknowledge the warning and prevents repeated warnings in the future. This can spam the console in tests, logs and on the browser.

Additionally I noticed that the suid example also prints this on the browser's console.

@StephenSmithwick

StephenSmithwick commented Sep 2, 2026

Copy link
Copy Markdown
Author

I ran the following options to confirm that this does not break anything (in addition to mise dev and mise dev:site while updating the code):

  • mise run test
  • mise run test:e2e

@StephenSmithwick
StephenSmithwick force-pushed the main branch 5 times, most recently from a92ab2e to 8665f87 Compare September 2, 2026 17:13
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