Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

3055 do not recreate cx and getValue functions during render of Select component #16

Open
wants to merge 262 commits into
base: master
Choose a base branch
from

Conversation

manvydasu
Copy link

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 14, 2020

⚠️ No Changeset found

Latest commit: 2c35314

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e2b1af8:

Sandbox Source
react-codesandboxer-example Configuration

@Methuselah96
Copy link

Thanks! Can you add a changeset?

@@ -742,14 +742,15 @@ export default class Select extends Component<Props, State> {
};
}

getValue = () => this.state.selectValue;

cx = (...args: any) => classNames(this.props.classNamePrefix, ...args);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cx = (...args: any) => classNames(this.props.classNamePrefix, ...args);
cx = (...args: Array<any>) => classNames(this.props.classNamePrefix, ...args);

@@ -742,14 +742,15 @@ export default class Select extends Component<Props, State> {
};
}

getValue = () => this.state.selectValue;

cx = (...args: any) => classNames(this.props.classNamePrefix, ...args);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better yet:

Suggested change
cx = (...args: any) => classNames(this.props.classNamePrefix, ...args);
cx = (state?: ClassNamesState, className?: string) => classNames(this.props.classNamePrefix, state, className);

bladey and others added 25 commits November 23, 2020 17:57
Fix breaking CircleCI / Cypress build
Updated copyright in multiple places for year 2020
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](sindresorhus/dot-prop@v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 1.16.0 to 1.16.3.
- [Release notes](https://github.com/mafintosh/tar-fs/releases)
- [Commits](mafintosh/tar-fs@v1.16.0...v1.16.3)

Signed-off-by: dependabot[bot] <support@github.com>
…arn/dot-prop-4.2.1

Bump dot-prop from 4.2.0 to 4.2.1
…arn/websocket-extensions-0.1.4

Bump websocket-extensions from 0.1.3 to 0.1.4
Co-Authored-By: Eric Bonow <1007579+ebonow@users.noreply.github.com>
JedWatson and others added 30 commits March 5, 2021 09:37
…tics-for-input

Memoize strip diacritics for input
…ion_meta

Creatable: Add option meta field to onChange for 'create-option' action
Pass and sanitize commonProps passed to GroupHeader and Input
Fix typo in `docs/pages/components`
…in-passive-events-pollyfill

Ensure window exists in passive events polyfill
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.