Skip to content

The createConfig key option spams the console with a non-ignorable warning #79

Description

@StephenSmithwick
Image This warning message can be seen on the `site/src/examples/suid-example.tsx`:
const props = createOptions(values, {
    key: "name",
    disable: (value) => selectedValues().includes(value),
    filterable: true, // Default
    createable: createValue,
  });

  return (
    <Select
      multiple
      label="Fruit"
      placeholder="Pick some fruit"
      onChange={onChange}
      {...props}
    />
  );

I propose that we add an option to allow developers who have already updated their: userConfig.format || userConfig.disable || userConfig.extractText functions to ignore this text.

With something like:

createOptions(values, {
    key: "name",
    quietKeyWarning: true, // do not warn that 'format|disable|extractText' receive keyed value
    disable: (value) => selectedValues().includes(value),
    filterable: true,
    createable: createValue,
  });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions