Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: algolia/react-instantsearch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.35.0
Choose a base ref
...
head repository: algolia/react-instantsearch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.36.0
Choose a head ref
  • 3 commits
  • 45 files changed
  • 3 contributors

Commits on Oct 3, 2022

  1. Configuration menu
    Copy the full SHA
    980ad70 View commit details
    Browse the repository at this point in the history
  2. feat(useInstantSearch): expose status & error (#3645)

    <!--
      Thanks for submitting a pull request!
    Please provide enough information so that others can review your pull
    request.
    -->
    
    **Summary**
    
    <!--
      Explain the **motivation** for making this change.
      What existing problem does the pull request solve?
      Are there any linked issues?
    -->
    
    Introduces `status` and `error` in the response of `useInstantSearch`,
    as well as a new option on `useInstantSearch` to indicate errors in the
    search lifecycle should be caught.
    
    built on top of algolia/instantsearch#5127
    
    
    **Result**
    
    <!--
      Demonstrate the code is solid.
      Example: The exact commands you ran and their output,
      screenshots / videos if the pull request changes UI.
    -->
    
    
    ```jsx
    function Status() {
      const { status, error } = useInstantSearch({ catchError: true });
    
      return (
        <>
          <span>Search status: {status}</span>
          {error && <span>a search error occurred: {error.message}</span>}
        </>
      );
    }
    ```
    
    
    FX-1769
    Haroenv authored Oct 3, 2022
    Configuration menu
    Copy the full SHA
    f436d31 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. Configuration menu
    Copy the full SHA
    be8bf9a View commit details
    Browse the repository at this point in the history
Loading