Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export hooks #4886

Merged
merged 4 commits into from Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/metal-colts-explain.md
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Hooks for creation of custom Selects are now exported from main entry
4 changes: 4 additions & 0 deletions packages/react-select/src/index.ts
@@ -1,5 +1,8 @@
import Select from './Select';
import { GroupBase } from './types';
import useAsync from './useAsync';
import useCreatable from './useCreatable';
import useStateManager from './useStateManager';

export { default } from './stateManager';
export { default as NonceProvider } from './NonceProvider';
Expand All @@ -13,6 +16,7 @@ export type SelectInstance<
Group extends GroupBase<Option> = GroupBase<Option>
> = Select<Option, IsMulti, Group>;
export type { StateManagerProps as Props } from './useStateManager';
export { useAsync, useCreatable, useStateManager };
Akridian marked this conversation as resolved.
Show resolved Hide resolved

export type { SelectComponentsConfig } from './components';
export type {
Expand Down