meilisearch-react icon indicating copy to clipboard operation
meilisearch-react copied to clipboard

Input broken caused with React Strict Mode

Open konhi opened this issue 2 years ago • 4 comments

Description

Algolia's react-instantsearch is incompatible with React Strict Mode. It causes input to be unusable. It's not caused by Meilisearch dependencies.

I'm reporting this issue in case someone stumbles with this problem as it might often happen.

Related Issues

  • https://github.com/algolia/react-instantsearch/issues/1743
  • https://github.com/algolia/react-instantsearch/issues/3537
  • https://github.com/algolia/react-instantsearch/issues/3506

Temporary solution

  1. disable React Strict Mode

or

  1. use react-instantsearch-hooks instead of react-instantsearch-dom. This approach seems to be recommended by Algolia! image

konhi avatar Jul 04 '22 12:07 konhi

Thanks a lot for this information!

bidoubiwa avatar Jul 06 '22 10:07 bidoubiwa

@bidoubiwa I would like to work on this issue to document it...Kindly issue it to me as part of "Hacktoberfest" !

Smartmind12 avatar Oct 13 '22 16:10 Smartmind12

Hey @Smartmind12 ! This is not an issue but documentation for users that might stumble upon the same problem.

bidoubiwa avatar Oct 13 '22 23:10 bidoubiwa

Hey @Smartmind12 ! This is not an issue but documentation for users that might stumble upon the same problem.

I understand thanks alot! I would suggest to document it in the docs as a “Note” section under Instant Search, for better reachability!!

Let me know if i can help in the documentation of it.

Smartmind12 avatar Oct 14 '22 01:10 Smartmind12

Hey @Smartmind12, since this is an issue only at instantsearch side, I'm avoiding documenting their bugs. If tomorrow they fix it I might not realize it and thus leave outdated documentation on this README.md. We should even consider closing this issue here.

bidoubiwa avatar Oct 17 '22 11:10 bidoubiwa

Feel free to re-open the issue if the problem persists!

bidoubiwa avatar Sep 27 '23 13:09 bidoubiwa