freeCodeCamp / freeCodeCamp/devdocs

Bug: Lag / Stack Overflow on Phoenix Search Result

Open
#1,689 3 comments 1 reaction 0 assignees View on GitHub
bug/search
Dominant language
Ruby
Stars
39.5k
Forks
2.6k
Avg merge
4d 32m
Merged PRs (30d)
13

Description

**Describe the bug**
Stack overflow on long search result.

**To Reproduce**
Steps to reproduce the behavior:

1. Add Phoenix as a source.
2. Search for `testing-librar` (problem occurs when typing the second `r`)

Result:

Page lags for a while, then an error shows in the console. I can continue to interact with the page, but every action takes several seconds, until I delete the search term and the page becomes responsive again.

It freezes every time I search with `testing-librar` but does not reliably freeze when finding the same search result by searching for other terms.

**Expected behavior**
No lagging, text in search results is trimmed.
A clear and concise description of what you expected to happen.

**Screenshots**
![Screen Shot 2022-01-10 at 11 35 35](https://user-images.githubusercontent.com/23065557/148803220-20922967-6641-443d-85a5-7ce052c76221.png)

**Desktop (please complete the following information):**
- OS: macOS Big Sur
- Browser: Firefox 95.0.1

**Additional context**
I recently started trying DevDocs for the first time. I added a few sources, and tried searching for a few terms, but it's otherwise a fresh state.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.