gabrielcsapo / gabrielcsapo/docusaurus-plugin-search-local
Bug: cannot update state error in browser
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
## Bug Description
React DevTools throws when attempting to go to a search result on first load of the application.
```
Warning: Cannot update a component (`SearchModal`) while rendering a different component (`SuggestionTemplate`). To locate the bad setState() call inside `SuggestionTemplate`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
```
## Steps to Reproduce
1. load a site using the docusaurus plugin
2. open dev tools
3. open the search modal
4. type a search that has result
5. hit the `enter` key to go to the selected result
6. error is produced in dev tools

Contributor guide
Assessment
This issue has not been assessed yet.