ademidun / atila-client-web-app

Client web app for atila.ca
https://atila.ca
0 stars 0 forks source link

commented out the autocomplete form #543

Open ademidun opened 2 years ago

ademidun commented 2 years ago

The AutoComplete form is crashing when used with components that aren't wrapped in InstantSearch.

The fix is that the wrapping of InstantSearch should be handled by AutoComplete logic.

Uncaught TypeError: this.props.contextValue.store.getState is not a function. See: https://github.com/algolia/react-instantsearch/issues/2897

Error likely introduced in this commit: https://github.com/ademidun/atila-client-web-app/commit/5a13f711f8bae4c7ca85b87319b211b877206bcc in PR https://github.com/ademidun/atila-client-web-app/pull/528

This one crashes on atila.ca/clubs: https://github.com/ademidun/atila-client-web-app/blob/dcebcb4ff5b73ee8a587353bea74022ea446a8d3/src/components/Query/QueryItem.js#L167-L168

This one works: https://github.com/ademidun/atila-client-web-app/blob/658040b16ca02d97a99b89d28976e5a828febb11/src/scenes/LandingPage/Banner.jsx#L96-L97