meilisearch-react
meilisearch-react copied to clipboard
Input broken caused with React Strict Mode
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
- disable React Strict Mode
or
- use react-instantsearch-hooks instead of react-instantsearch-dom. This approach seems to be recommended by Algolia!
Thanks a lot for this information!
@bidoubiwa I would like to work on this issue to document it...Kindly issue it to me as part of "Hacktoberfest" !
Hey @Smartmind12 ! This is not an issue but documentation for users that might stumble upon the same problem.
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.
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.
Feel free to re-open the issue if the problem persists!