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

Add FinalFormAsyncSelect, AsyncSelectField, and FinalFormAsyncAutocomplete components #2069

Merged
merged 4 commits into from
Jun 5, 2024

Commits on May 15, 2024

  1. Add FinalFormAsyncSelect and FinalFormAsyncAutocomplete components

    Thin wrappers to ease using `useAsyncOptionsProps()` with `FinalFormSelect` and `FinalFormAutocomplete`.
    
    **Example**
    
    Previously:
    
    ```tsx
    const asyncOptionsProps = useAsyncOptionsProps(async () => {
        // Load options here
    });
    
    // ...
    
    <Field component={FinalFormAsyncAutocomplete} {...asyncOptionsProps} />;
    ```
    
    Now:
    
    ```tsx
    <Field
        component={FinalFormAsyncAutocomplete}
        loadOptions={async () => {
            // Load options here
        }}
    />
    ```
    johnnyomair committed May 15, 2024
    Configuration menu
    Copy the full SHA
    717ebef View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. Configuration menu
    Copy the full SHA
    b0b45e3 View commit details
    Browse the repository at this point in the history
  2. Add AsyncSelectField

    johnnyomair committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    92eca4e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3fa6af6 View commit details
    Browse the repository at this point in the history